mirror of
https://github.com/neovim/neovim.git
synced 2026-10-26 15:40:20 -05:00
fix(treesitter): reset next_col when performing intermediate highlights
The iterator is meant to be fully reset in this code path, but only the `next_row` state was being reset. This would only cause highlight artifacts for very brief periods of time, though.
This commit is contained in:
1 parent
39455a4363
commit
f2bfde9140
1 file changed
+1
@@ -570,6 +570,7 @@ function TSHighlighter._on_win(_, win, buf, topline, botline)
|
||||
-- trees upon parsing a different region.
|
||||
state.iter = nil
|
||||
state.next_row = 0
|
||||
state.next_col = 0
|
||||
end)
|
||||
end
|
||||
local hl_states = self._highlight_states[win] or {}
|
||||
|
||||
Reference in new issue
Block a user