Explorar o código

Merge pull request #11 from IvanUkhov/close-when-not-bufloaded

Close even if the target buffer has not been loaded yet
jlanzarotta %!s(int64=11) %!d(string=hai) anos
pai
achega
101f83c520
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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.