]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(zip): refactor save and restore of options
authorChristian Brabandt <cb@256bit.org>
Mon, 5 Aug 2024 19:00:07 +0000 (21:00 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 6 Aug 2024 18:19:37 +0000 (20:19 +0200)
commit19636be55e023cb726389107e9e7d62049b6fd58
tree09198acaaf4076d6f9935b3d6848280fcb94f3c8
parent33836d38b82aa926a2a2b3f945a0139f373f7e56
runtime(zip): refactor save and restore of options

Problem:  zip plugin has no way to set/restore option values
Solution: Add the SetSaneOpts() and RestoreOpts() functions,
          so options that cause issues are set to sane values
          and restored back to their initial values later on.
          (this affects the 'shellslash' option on windows, which also
          changes how the shellescape() function works)

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