1
0
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:
Samar Dhwoj Acharya 2017-06-19 18:23:14 -05:00 committed by Wang Shidong
parent b626ac4d5c
commit 4a3c62fa52
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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