]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(zip): fix failure on Windows CI
authorChristian Brabandt <cb@256bit.org>
Thu, 30 Jul 2026 20:22:52 +0000 (20:22 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 30 Jul 2026 20:22:52 +0000 (20:22 +0000)
commite241ac0a62b774763733f2ccac4040dfe8aafac8
treec795854769788595fc2c46e66906c2f0cf05f0ad
parent902db1d7a5141adabba4c869a62c8a5e9757680a
runtime(zip): fix failure on Windows CI

Problem:  The zip autoload script aborts loading when the "zip"
          command is not available, so even read-only browsing of an
          archive fails with E117 (zip#Browse undefined) on systems
          that have "unzip" but not "zip" (e.g. the Windows CI
          runner).  Regressed in b0e0b22.
Solution: Drop the load-time executable gate and check each command
          per operation instead, so a missing "zip" only affects
          writing.  Update the test to match the reworded message.

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