mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 11:40:05 +08:00
only check option at the top level
This commit is contained in:
parent
6210afd2f1
commit
c5205aa192
@ -87,7 +87,7 @@ function! SpaceVim#plugins#projectmanager#current_root() abort
|
|||||||
endif
|
endif
|
||||||
call setbufvar('%', 'rootDir', rootdir)
|
call setbufvar('%', 'rootDir', rootdir)
|
||||||
endif
|
endif
|
||||||
if !empty(rootdir) && g:spacevim_project_rooter_automatically
|
if !empty(rootdir)
|
||||||
call s:change_dir(rootdir)
|
call s:change_dir(rootdir)
|
||||||
call SpaceVim#plugins#projectmanager#RootchandgeCallback()
|
call SpaceVim#plugins#projectmanager#RootchandgeCallback()
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user