1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:10:05 +08:00
This commit is contained in:
Tzuhsing Gwo 2018-07-18 17:12:38 +08:00
parent c95e3a8544
commit 8b60bc1280

View File

@ -867,7 +867,7 @@ function! SpaceVim#begin() abort
elseif argv(0) ==# '.' elseif argv(0) ==# '.'
return [1, getcwd()] return [1, getcwd()]
elseif isdirectory(expand(argv(0))) elseif isdirectory(expand(argv(0)))
return [1, expand(argv(0)) ] return [1, fnamemodify(expand(argv(0)), ':p')]
else else
return [0] return [0]
endif endif