Просмотр исходного кода

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

wipe explorer buffer on hide
jlanzarotta 2 лет назад
Родитель
Сommit
0530d63747
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()