Pārlūkot izejas kodu

Merge pull request #111 from basharh/issue-110-buffer-not-deleted

wipe explorer buffer on hide
jlanzarotta 2 gadi atpakaļ
vecāks
revīzija
0530d63747
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  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()