mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10:04 +08:00
use fnameescape and rename SPWelcom -> SPWelcome (#642)
This commit is contained in:
parent
b626ac4d5c
commit
4a3c62fa52
@ -530,7 +530,7 @@ endfunction
|
||||
|
||||
|
||||
function! SpaceVim#welcome() abort
|
||||
exe 'cd ' . g:_spacevim_enter_dir
|
||||
exe 'cd' fnameescape(g:_spacevim_enter_dir)
|
||||
if exists('g:_spacevim_checking_flag') && g:_spacevim_checking_flag
|
||||
return
|
||||
endif
|
||||
|
@ -23,7 +23,7 @@ endfunction
|
||||
let s:status = s:parser_argv()
|
||||
if s:status[0]
|
||||
let g:_spacevim_enter_dir = s:status[1]
|
||||
augroup SPwelcom
|
||||
augroup SPwelcome
|
||||
au!
|
||||
autocmd VimEnter * call SpaceVim#welcome()
|
||||
augroup END
|
||||
|
Loading…
Reference in New Issue
Block a user