Browse Source

feat: bufexplorer now required vim 7.4 or greater

Bufexplorer now requires Vim 7.4 or greater.
jlanzarotta 10 months ago
parent
commit
0ea8aece81
2 changed files with 10 additions and 18 deletions
  1. 4 1
      doc/bufexplorer.txt
  2. 6 17
      plugin/bufexplorer.vim

+ 4 - 1
doc/bufexplorer.txt

@@ -1,7 +1,7 @@
 *bufexplorer.txt*              Buffer Explorer       Last Change: 05 Mar 2025
 
 Buffer Explorer                                *buffer-explorer* *bufexplorer*
-                                Version 7.7.0
+                                Version 7.8.0
 
 Plugin for easily exploring (or browsing) Vim|:buffers|.
 
@@ -280,6 +280,9 @@ The default is 1.
 ===============================================================================
 CHANGE LOG                                              *bufexplorer-changelog*
 
+7.8.0    March 05, 2025
+     After all these many years, bufexplorer now requires Vim version 7.4 or
+     greater.
 7.7.0    March 05, 2025
      What's Changed
      - Another Major patch implemented by Dr. Michael Henry.

+ 6 - 17
plugin/bufexplorer.vim

@@ -73,8 +73,8 @@ if exists("g:bufexplorer_version") || &cp
 endif
 "1}}}
 
-" Version number
-let g:bufexplorer_version = "7.7.0"
+" Version number.
+let g:bufexplorer_version = "7.8.0"
 
 " Plugin Code {{{1
 " Check for Vim version {{{2
@@ -82,23 +82,12 @@ if !exists("g:bufExplorerVersionWarn")
     let g:bufExplorerVersionWarn = 1
 endif
 
-if v:version < 700
+" Make sure we are using the correct version of Vim. If not, do not load the
+" plugin.
+if v:version < 704
     if g:bufExplorerVersionWarn
         echohl WarningMsg
-        echo "Sorry, bufexplorer ".g:bufexplorer_version." required Vim 7.0 or greater."
-        echohl None
-    endif
-    finish
-endif
-
-" Check to see if the version of Vim has the correct patch applied, if not, do
-" not used <nowait>.
-if v:version > 703 || v:version == 703 && has('patch1261') && has('patch1264')
-    " We are good to go.
-else
-    if g:bufExplorerVersionWarn
-        echohl WarningMsg
-        echo "Sorry, bufexplorer ".g:bufexplorer_version." required Vim 7.3 or greater with patch1261 and patch1264."
+        echo "Sorry, bufexplorer ".g:bufexplorer_version." required Vim 7.4 or greater."
         echohl None
     endif
     finish