소스 검색

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

wipe explorer buffer on hide
jlanzarotta 2 년 전
부모
커밋
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()