mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
fix(treesitter): break early from loop when match is found (#22499)
Fixup to #22484.
This commit is contained in:
@@ -525,6 +525,7 @@ function M.inspect_tree(opts)
|
||||
for i, node in pg:iter() do
|
||||
if node.id == id then
|
||||
a.nvim_win_set_cursor(w, { i, col })
|
||||
break
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
Reference in New Issue
Block a user