Skip to content

Commit 607102a

Browse files
authored
Update web_src/js/features/repo-code.ts
1 parent a9c0e63 commit 607102a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web_src/js/features/repo-code.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function changeHash(hash: string) {
1212
}
1313
}
1414

15+
// it selects the code lines defined by range: `L1-L3` (3 lines) or `L2` (singe line)
1516
function selectRange(range: string): Element {
1617
for (const el of document.querySelectorAll('.code-view tr.active')) el.classList.remove('active');
1718
const elLineNums = document.querySelectorAll(`.code-view td.lines-num span[data-line-number]`);

0 commit comments

Comments
 (0)