소스 검색

Close even if the target buffer has not been loaded yet

Ivan Ukhov 11 년 전
부모
커밋
7b14e4e05e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      plugin/bufexplorer.vim

+ 2 - 0
plugin/bufexplorer.vim

@@ -808,6 +808,8 @@ function! s:SelectBuffer(...)
                     let _bufName = expand("#"._bufNbr.":p")
                     execute _bufName ? "drop ".escape(_bufName, " ") : "buffer "._bufNbr
                 endif
+            else
+                call s:Close()
             endif
 
             " Switch to the selected buffer.