mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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
|
for i, node in pg:iter() do
|
||||||
if node.id == id then
|
if node.id == id then
|
||||||
a.nvim_win_set_cursor(w, { i, col })
|
a.nvim_win_set_cursor(w, { i, col })
|
||||||
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user