瀏覽代碼

Bookmarks: wipe directory buffers on session autoload

References https://github.com/mhinz/vim-startify/issues/231
Marco Hinz 9 年之前
父節點
當前提交
41801d60cb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      autoload/startify.vim

+ 1 - 0
autoload/startify.vim

@@ -776,6 +776,7 @@ function! s:check_user_options(path) abort
   let session = a:path . s:sep .'Session.vim'
 
   if get(g:, 'startify_session_autoload') && filereadable(session)
+    execute 'silent bwipeout' a:path
     execute 'source' session
   elseif get(g:, 'startify_change_to_vcs_root')
     call s:cd_to_vcs_root(a:path)