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
|
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
|
if exists('g:_spacevim_checking_flag') && g:_spacevim_checking_flag
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
@ -23,7 +23,7 @@ endfunction
|
|||||||
let s:status = s:parser_argv()
|
let s:status = s:parser_argv()
|
||||||
if s:status[0]
|
if s:status[0]
|
||||||
let g:_spacevim_enter_dir = s:status[1]
|
let g:_spacevim_enter_dir = s:status[1]
|
||||||
augroup SPwelcom
|
augroup SPwelcome
|
||||||
au!
|
au!
|
||||||
autocmd VimEnter * call SpaceVim#welcome()
|
autocmd VimEnter * call SpaceVim#welcome()
|
||||||
augroup END
|
augroup END
|
||||||
|
Loading…
Reference in New Issue
Block a user