mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 02:17:09 +10:00
fix(treesitter): new iter if folded
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user