]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(zip): use defer to restore old settings
authorChristian Brabandt <cb@256bit.org>
Tue, 6 Aug 2024 16:50:59 +0000 (18:50 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 6 Aug 2024 18:19:50 +0000 (20:19 +0200)
commitafea6b946827e964271eb19579946a7f88d2f329
tree8ee4650226808379c87480dab8ae8c13164a2c01
parent8d52926857ec7f08a9bee8f96470748cecf58002
runtime(zip): use defer to restore old settings

Problem:  RestoreOpts() plugin called too often
Solution: use :defer to have the RestoreOpts() function
          called when the function returns automatically

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