mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:40:06 +08:00
Fix type
This commit is contained in:
parent
6233e0ee01
commit
d1e6318acb
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user