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:
parent
d64f1f1ba9
commit
083a5a2cbb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user