1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:30:04 +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) ==# '.'
return [1, getcwd()]
elseif isdirectory(expand(argv(0)))
return [1, expand(argv(0)) ]
return [1, fnamemodify(expand(argv(0)), ':p')]
else
return [0]
endif