diff --git a/lua/nvim-tree/actions/finders/find-file.lua b/lua/nvim-tree/actions/finders/find-file.lua index 725b77b037b..6c1c2a69340 100644 --- a/lua/nvim-tree/actions/finders/find-file.lua +++ b/lua/nvim-tree/actions/finders/find-file.lua @@ -13,7 +13,7 @@ local running = {} ---Find a path in the tree, expand it and focus it ---@param fname string full path function M.fn(fname) - if not core.get_explorer() then + if not core.get_explorer() or not view.is_visible() then return end