mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
fix(treesitter): break early from loop when match is found (#22499)
Fixup to #22484.
This commit is contained in:
parent
a88c18c24e
commit
bf90ceb548
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user