fix(treesitter): break early from loop when match is found (#22499)

Fixup to #22484.
This commit is contained in:
Gregory Anders
2023-03-03 07:52:57 -07:00
committed by GitHub
parent a88c18c24e
commit bf90ceb548

View File

@@ -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,