Ignore buffers with unsaved changes when deleting buffers
This commit is contained in:
parent
423eb03de4
commit
fbd690fc85
|
@ -366,7 +366,7 @@ endfunction
|
||||||
" Function: #session_delete_buffers {{{1
|
" Function: #session_delete_buffers {{{1
|
||||||
function! startify#session_delete_buffers()
|
function! startify#session_delete_buffers()
|
||||||
if get(g:, 'startify_session_delete_buffers', 1)
|
if get(g:, 'startify_session_delete_buffers', 1)
|
||||||
silent %bdelete
|
silent! %bdelete
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
|
@ -336,6 +336,8 @@ Delete all buffers when loading or closing a session:
|
||||||
- When using |g:startify_session_autoload|.
|
- When using |g:startify_session_autoload|.
|
||||||
- When choosing a session from the Startify buffer.
|
- When choosing a session from the Startify buffer.
|
||||||
|
|
||||||
|
NOTE: Buffers with unsaved changes are silently ignored.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
*g:startify_change_to_dir*
|
*g:startify_change_to_dir*
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue