parent
6d6ff5f927
commit
b89114f359
2 changed files with 11 additions and 0 deletions
|
@ -227,6 +227,16 @@ function! startify#session_save(...) abort
|
|||
endif
|
||||
endfunction
|
||||
|
||||
" Function: #session_close {{{1
|
||||
function! startify#session_close() abort
|
||||
if exists('v:this_session') && filewritable(v:this_session)
|
||||
call startify#session_write(fnameescape(v:this_session))
|
||||
let v:this_session = ''
|
||||
endif
|
||||
call startify#session_delete_buffers()
|
||||
Startify
|
||||
endfunction
|
||||
|
||||
" Function: #session_write {{{1
|
||||
function! startify#session_write(spath)
|
||||
let ssop = &sessionoptions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue