Browse Source

wipe explorer buffer on hide

Bashar Harfoush 2 năm trước cách đây
mục cha
commit
bc04338f17
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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()