Browse Source

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

Close even if the target buffer has not been loaded yet
jlanzarotta 11 years ago
parent
commit
101f83c520
1 changed files with 2 additions and 0 deletions
  1. 2 0
      plugin/bufexplorer.vim

+ 2 - 0
plugin/bufexplorer.vim

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