We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45400cd commit 3e9509eCopy full SHA for 3e9509e
lua/nvim-tree/actions/root/change-dir.lua
@@ -64,8 +64,10 @@ end
64
65
M.force_dirchange = add_profiling_to(function(foldername, should_open_view)
66
local valid_dir = vim.fn.isdirectory(foldername) == 1 -- prevent problems on non existing dirs
67
- if should_change_dir() and valid_dir then
68
- cd(M.options.global, foldername)
+ if valid_dir then
+ if should_change_dir() then
69
+ cd(M.options.global, foldername)
70
+ end
71
core.init(foldername)
72
end
73
0 commit comments