Переглянути джерело

backward-compatible fix for the "invalid tab range" bug

Finally applied the patch submitted by justfalter.  This patch is a
backward-compatible fix for the "invalid tab range" bug.
jeff 8 роки тому
батько
коміт
7063311748
2 змінених файлів з 14 додано та 9 видалено
  1. 5 2
      doc/bufexplorer.txt
  2. 9 7
      plugin/bufexplorer.vim

+ 5 - 2
doc/bufexplorer.txt

@@ -1,7 +1,7 @@
-*bufexplorer.txt*              Buffer Explorer       Last Change: 10 Apr 2017
+*bufexplorer.txt*              Buffer Explorer       Last Change: 01 May 2017
 
 Buffer Explorer                                *buffer-explorer* *bufexplorer*
-                                Version 7.4.14
+                                Version 7.4.15
 
 Plugin for easily exploring (or browsing) Vim|:buffers|.
 
@@ -253,6 +253,9 @@ The default is 0, so that the size is set by Vim.
 ===============================================================================
 CHANGE LOG                                              *bufexplorer-changelog*
 
+7.4.15   May 01, 2017
+    - Finally applied the patch submitted by justfalter.  This patch is a
+      backward-compatible fix for the "invalid tab range" bug.
 7.4.14   April 10, 2017
     - As suggested by adelarsq way back on January 5th, 2016, a filetype has
       been added.  There is now 'filetype=bufexplorer'.

+ 9 - 7
plugin/bufexplorer.vim

@@ -36,7 +36,7 @@
 " Name Of File: bufexplorer.vim
 "  Description: Buffer Explorer Vim Plugin
 "   Maintainer: Jeff Lanzarotta (delux256-vim at yahoo dot com)
-" Last Changed: Monday, 10 April 2017
+" Last Changed: Monday, 01 May 2017
 "      Version: See g:bufexplorer_version for version number.
 "        Usage: This file should reside in the plugin directory and be
 "               automatically sourced.
@@ -74,7 +74,7 @@ endif
 "1}}}
 
 " Version number
-let g:bufexplorer_version = "7.4.14"
+let g:bufexplorer_version = "7.4.15"
 
 " Plugin Code {{{1
 " Check for Vim version {{{2
@@ -825,14 +825,16 @@ function! s:SelectBuffer(...)
 
             " Was the tab found?
             if tabNbr == 0
-                " _bufNbr is not opened in any tabs. Open a new tab with the selected buffer in it.
+                " _bufNbr is not opened in any tabs. Open a new tab with the
+                " selected buffer in it.
                 if v:version > 704 || ( v:version == 704 && has('patch2237') )
-                  " new syntax for last tab as of 7.4.2237
-                  execute "$tab split +buffer" . _bufNbr
+                    " new syntax for last tab as of 7.4.2237
+                    execute "$tab split +buffer" . _bufNbr
                 else
-                  execute "999tab split +buffer" . _bufNbr
+                    execute "999tab split +buffer" . _bufNbr
                 endif
-                " Workaround for the issue mentioned in UpdateTabBufData
+
+                " Workaround for the issue mentioned in UpdateTabBufData.
                 call s:UpdateTabBufData(_bufNbr)
             else
                 " The _bufNbr is already opened in a tab, go to that tab.