* fix(#2088): update tree root when actions.change_dir disabled * fix(#2088): update tree root when actions.change_dir disabled
This commit is contained in:
committed by
GitHub
parent
45400cd7e0
commit
3e9509ec1b
@@ -64,8 +64,10 @@ end
|
|||||||
|
|
||||||
M.force_dirchange = add_profiling_to(function(foldername, should_open_view)
|
M.force_dirchange = add_profiling_to(function(foldername, should_open_view)
|
||||||
local valid_dir = vim.fn.isdirectory(foldername) == 1 -- prevent problems on non existing dirs
|
local valid_dir = vim.fn.isdirectory(foldername) == 1 -- prevent problems on non existing dirs
|
||||||
if should_change_dir() and valid_dir then
|
if valid_dir then
|
||||||
|
if should_change_dir() then
|
||||||
cd(M.options.global, foldername)
|
cd(M.options.global, foldername)
|
||||||
|
end
|
||||||
core.init(foldername)
|
core.init(foldername)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user