runtime(zip): zip plugin does not work with Vim 9.0
Commit:
https://github.com/vim/vim/commit/e2d9b0d499d0504ba0e935024daf1cfa12e349c4
Author: Christian Brabandt <[email protected]>
Date: Wed Aug 7 08:13:32 2024 +0200
runtime(zip): zip plugin does not work with Vim 9.0
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 <[email protected]>
diff --git a/runtime/autoload/zip.vim b/runtime/autoload/zip.vim
index 148e45bcb..31fb32779 100644
--- a/runtime/autoload/zip.vim
+++ b/runtime/autoload/zip.vim
@@ -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)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1sbaBR-002paA-IY%40256bit.org.