diff --git a/autoload/startify.vim b/autoload/startify.vim index b67b4db..15a43ec 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -366,7 +366,7 @@ endfunction " Function: #session_delete_buffers {{{1 function! startify#session_delete_buffers() if get(g:, 'startify_session_delete_buffers', 1) - silent %bdelete + silent! %bdelete endif endfunction diff --git a/doc/startify.txt b/doc/startify.txt index a6e5a85..64c411d 100644 --- a/doc/startify.txt +++ b/doc/startify.txt @@ -336,6 +336,8 @@ Delete all buffers when loading or closing a session: - When using |g:startify_session_autoload|. - When choosing a session from the Startify buffer. +NOTE: Buffers with unsaved changes are silently ignored. + ------------------------------------------------------------------------------ *g:startify_change_to_dir* >