mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 15:19:12 +08:00
Fix root (#3321)
This commit is contained in:
parent
d4150f19f3
commit
6233e0ee01
@ -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'
|
||||
if ( ftype ==# 'dir' || ftype ==# 'file' ) && dir !=# expand('~')
|
||||
let dir = s:FILE.unify_path(fnamemodify(dir, ':p'))
|
||||
if ftype ==# 'dir'
|
||||
let dir = fnamemodify(dir, ':h:h')
|
||||
|
Loading…
x
Reference in New Issue
Block a user