fix(treesitter): new iter if folded

This commit is contained in:
kevinhwang91
2022-06-16 17:38:10 +02:00
committed by bfredl
parent 35c9fe9895
commit 8780076a78
+1 -1
View File
@@ -279,7 +279,7 @@ local function on_line_impl(self, buf, line)
return
end
if state.iter == nil then
if state.iter == nil or state.next_row < line then
state.iter = highlighter_query:query():iter_captures(root_node, self.bufnr, line, root_end_row + 1)
end