1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 00:20:05 +08:00

fix(projectmanager): change rootdir when switch project

This commit is contained in:
wsdjeg 2022-10-27 09:20:12 +08:00
parent d64f1f1ba9
commit 083a5a2cbb

View File

@ -407,6 +407,8 @@ function M.current_root()
end end
end end
fn.setbufvar('%', 'rootDir', rootdir) fn.setbufvar('%', 'rootDir', rootdir)
elseif change_dir(rootdir) then
M.RootchandgeCallback()
end end
return rootdir return rootdir
end end