瀏覽代碼

wipe explorer buffer on hide

Bashar Harfoush 2 年之前
父節點
當前提交
bc04338f17
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      plugin/bufexplorer.vim

+ 1 - 2
plugin/bufexplorer.vim

@@ -480,13 +480,12 @@ endfunction
 
 " DisplayBufferList {{{2
 function! s:DisplayBufferList()
-    " Do not set bufhidden since it wipes out the data if we switch away from
-    " the buffer using CTRL-^.
     setlocal buftype=nofile
     setlocal modifiable
     setlocal noreadonly
     setlocal noswapfile
     setlocal nowrap
+    setlocal bufhidden=wipe
 
     call s:SetupSyntax()
     call s:MapKeys()