1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:10:04 +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
fn.setbufvar('%', 'rootDir', rootdir)
elseif change_dir(rootdir) then
M.RootchandgeCallback()
end
return rootdir
end