Skip to content

Commit 792f0ad

Browse files
fix(highlight): return false when the capture is not a comment
1 parent 96fee09 commit 792f0ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/todo-comments/highlight.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ function M.is_comment(buf, row, col)
6464
return true
6565
end
6666
end
67+
return false
6768
else
6869
local win = vim.fn.bufwinid(buf)
6970
return win ~= -1

0 commit comments

Comments
 (0)