diff --git a/autoload/startify.vim b/autoload/startify.vim index b637fc5..3243cf8 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -520,7 +520,15 @@ endfunction " Function: s:session_write {{{1 function! s:session_write(spath) - execute 'mksession!' a:spath + let ssop = &sessionoptions + try + set sessionoptions-=options + execute 'mksession!' a:spath + catch + execute 'echoerr' string(v:exception) + finally + let &sessionoptions = ssop + endtry if exists('g:startify_session_savevars') || exists('g:startify_session_savecmds') execute 'split' a:spath