1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:40:06 +08:00
This commit is contained in:
Shidong Wang 2020-02-01 10:41:05 +08:00
parent 6233e0ee01
commit d1e6318acb

View File

@ -168,7 +168,7 @@ function! s:find_root_directory() abort
let dir = SpaceVim#util#findFileInParent(pattern, fd)
endif
let ftype = getftype(dir)
if ( ftype ==# 'dir' || ftype ==# 'file' ) && dir !=# expand('~')
if ( ftype ==# 'dir' || ftype ==# 'file' ) && dir !=# expand('~/.SpaceVim.d/')
let dir = s:FILE.unify_path(fnamemodify(dir, ':p'))
if ftype ==# 'dir'
let dir = fnamemodify(dir, ':h:h')