1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 15:10:04 +08:00

Merge pull request #1591 from wsdjeg/startup_logic

Fix welcome func
This commit is contained in:
Wang Shidong 2018-04-01 14:12:26 +08:00 committed by GitHub
commit 42f494a809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -689,7 +689,7 @@ function! SpaceVim#begin() abort
if !argc() if !argc()
return [1, getcwd()] return [1, getcwd()]
elseif argv(0) =~# '/$' elseif argv(0) =~# '/$'
let f = expand(argv(0)) let f = fnamemodify(expand(argv(0)), ':p')
if isdirectory(f) if isdirectory(f)
return [1, f] return [1, f]
else else