Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable welcome when load session at startup #1191

Merged
merged 1 commit into from Dec 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions autoload/SpaceVim.vim
Expand Up @@ -672,6 +672,9 @@ endfunction


function! SpaceVim#welcome() abort
if get(g:, '_spacevim_session_loaded', 0) == 1
return
endif
exe 'cd' fnameescape(g:_spacevim_enter_dir)
if exists('g:_spacevim_checking_flag') && g:_spacevim_checking_flag
return
Expand Down
1 change: 1 addition & 0 deletions autoload/SpaceVim/autocmds.vim
Expand Up @@ -81,6 +81,7 @@ function! SpaceVim#autocmds#init() abort
autocmd VimEnter * call SpaceVim#autocmds#VimEnter()
autocmd User RooterChDir call SpaceVim#plugins#projectmanager#RootchandgeCallback()
autocmd BufEnter * let b:_spacevim_project_name = get(g:, '_spacevim_project_name', '')
autocmd SessionLoadPost * let g:_spacevim_session_loaded = 1
augroup END
endfunction

Expand Down