mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-04 07:33:44 +09:00
fix(ui): ignore code line anchors below 1, show JS errors in vite dev mode (#39432)
This commit is contained in:
@@ -58,6 +58,7 @@ function selectRange(range: string): Element | null {
|
||||
stopLineNum = tmp;
|
||||
range = `${stop}-${start}`;
|
||||
}
|
||||
if (startLineNum < 1) return null;
|
||||
|
||||
const first = elLineNums[startLineNum - 1] ?? null;
|
||||
for (let i = startLineNum - 1; i <= stopLineNum - 1 && i < elLineNums.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user