Prechádzať zdrojové kódy

Merge pull request #84 from drmikehenry/allow-delete-last

Allow deletion of last buffer.
jlanzarotta 6 rokov pred
rodič
commit
86062cdd48
1 zmenil súbory, kde vykonal 0 pridanie a 6 odobranie
  1. 0 6
      plugin/bufexplorer.vim

+ 0 - 6
plugin/bufexplorer.vim

@@ -957,12 +957,6 @@ function! s:RemoveBuffer(mode)
 
     let mode = a:mode
 
-    " Do not allow this buffer to be deleted if it is the last one.
-    if len(s:MRUList) == 1
-        call s:Error("Sorry, you are not allowed to delete the last buffer")
-        return
-    endif
-
     " These commands are to temporarily suspend the activity of winmanager.
     if exists("b:displayMode") && b:displayMode == "winmanager"
         call WinManagerSuspendAUs()