Skip to content

Commit 9d3602e

Browse files
committed
fix(find-file): do not recurse on closed nodes
1 parent c847354 commit 9d3602e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/nvim-tree/actions/find-file.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ function M.fn(fname)
4343
end
4444
end
4545
end)
46+
:recursor(function(node)
47+
return node.open and node.nodes
48+
end)
4649
:iterate()
4750

4851
if found and view.is_visible() then

0 commit comments

Comments
 (0)