Skip to content

Commit

Permalink
runtime(zip): zip plugin does not work with Vim 9.0
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
chrisbra committed Aug 7, 2024
1 parent 91efcd1 commit e2d9b0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runtime/autoload/zip.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e2d9b0d

Please sign in to comment.