mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(treesitter): new iter if folded
This commit is contained in:
parent
35c9fe9895
commit
8780076a78
@ -279,7 +279,7 @@ local function on_line_impl(self, buf, line)
|
|||||||
return
|
return
|
||||||
end
|
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)
|
state.iter = highlighter_query:query():iter_captures(root_node, self.bufnr, line, root_end_row + 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user