]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(zip): zip plugin does not work with Vim 9.0
authorChristian Brabandt <cb@256bit.org>
Wed, 7 Aug 2024 06:13:32 +0000 (08:13 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 7 Aug 2024 06:13:32 +0000 (08:13 +0200)
Problem:  zip plugin does not work with Vim 9.0
          because of :defer
Solution: raise minimum Vim version to Vim 9.1

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/zip.vim

index 148e45bcba6873e9bb23f7ad1bf8dbcc61b89e71..31fb32779f86d8c6adb104cede1df472562f08ef 100644 (file)
@@ -68,8 +68,9 @@ fun! s:Mess(group, msg)
   echohl Normal
 endfun
 
-if v:version < 900
- call s:Mess('WarningMsg', "***warning*** this version of zip needs vim 9.0 or later")
+if v:version < 901
+ " required for defer
+ call s:Mess('WarningMsg', "***warning*** this version of zip needs vim 9.1 or later")
  finish
 endif
 if !dist#vim#IsSafeExecutable('zip', g:zip_unzipcmd)