Skip to content

Commit 9e4c395

Browse files
authored
fix(#1833): do not find file when view is not visible on the current tab (#1845)
1 parent fee6801 commit 9e4c395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ local running = {}
1313
---Find a path in the tree, expand it and focus it
1414
---@param fname string full path
1515
function M.fn(fname)
16-
if not core.get_explorer() then
16+
if not core.get_explorer() or not view.is_visible() then
1717
return
1818
end
1919

0 commit comments

Comments
 (0)