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

only check option at the top level

This commit is contained in:
Sarunas Valaskevicius 2018-12-19 16:14:20 +00:00
parent 6210afd2f1
commit c5205aa192

View File

@ -87,7 +87,7 @@ function! SpaceVim#plugins#projectmanager#current_root() abort
endif
call setbufvar('%', 'rootDir', rootdir)
endif
if !empty(rootdir) && g:spacevim_project_rooter_automatically
if !empty(rootdir)
call s:change_dir(rootdir)
call SpaceVim#plugins#projectmanager#RootchandgeCallback()
endif