Quellcode durchsuchen

wipe explorer buffer on hide

Bashar Harfoush vor 2 Jahren
Ursprung
Commit
bc04338f17
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  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()