fix(treesitter): new iter if folded

This commit is contained in:
kevinhwang91 2022-05-26 23:29:31 +08:00 committed by bfredl
parent 35c9fe9895
commit 8780076a78

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