Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Commit 8f8657e

Browse files
committed
fix: add check for data-line-number to isCode
1 parent 4fd3270 commit 8f8657e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/github/dom_functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export const getDiffLineRanges: CodeView['getLineRanges'] = (codeView, part) =>
197197

198198
for (const row of codeView.querySelectorAll<HTMLTableRowElement>('tr')) {
199199
const isCode =
200-
!row.classList.contains('js-expandable-line') && !row.classList.contains('js-inline-comments-container')
200+
!row.classList.contains('js-expandable-line') && !row.classList.contains('js-inline-comments-container') && !row.querySelector('[data-line-number="..."]')
201201

202202
if (isCode) {
203203
const line = row.querySelector<HTMLElement>(

0 commit comments

Comments
 (0)