diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-08-22 05:58:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-22 05:58:22 +0800 |
commit | 3bd7492a69a0bf00b366a46dc09d5035b9f784e4 (patch) | |
tree | ef9d16fb39240c2a823ea32339b1a6e5345e6956 | |
parent | 362389eb1552abd60df393e38c1fb23b12dafe1d (diff) | |
download | rneovim-3bd7492a69a0bf00b366a46dc09d5035b9f784e4.tar.gz rneovim-3bd7492a69a0bf00b366a46dc09d5035b9f784e4.tar.bz2 rneovim-3bd7492a69a0bf00b366a46dc09d5035b9f784e4.zip |
vim-patch:bc29ea6: runtime(zip): simplify condition to detect MS-Windows (#30115)
related: vim/vim#15519
https://github.com/vim/vim/commit/bc29ea62861052b35781031173a67d7d577be068
Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | runtime/autoload/zip.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/autoload/zip.vim b/runtime/autoload/zip.vim index f113be6b6b..172de98d36 100644 --- a/runtime/autoload/zip.vim +++ b/runtime/autoload/zip.vim @@ -1,6 +1,6 @@ " zip.vim: Handles browsing zipfiles " AUTOLOAD PORTION -" Date: Aug 18, 2024 +" Date: 2024 Aug 21 " Version: 34 " Maintainer: This runtime file is looking for a new maintainer. " Former Maintainer: Charles E Campbell @@ -13,6 +13,7 @@ " 2024 Aug 05 by Vim Project: workaround for the FreeBSD's unzip " 2024 Aug 05 by Vim Project: clean-up and make it work with shellslash on Windows " 2024 Aug 18 by Vim Project: correctly handle special globbing chars +" 2024 Aug 21 by Vim Project: simplify condition to detect MS-Windows " License: Vim License (see vim's :help license) " Copyright: Copyright (C) 2005-2019 Charles E. Campbell {{{1 " Permission is hereby granted to use and distribute this code, @@ -341,7 +342,7 @@ fun! zip#Extract() return endif let target = fname->substitute('\[', '[[]', 'g') - if &shell =~ 'cmd' && (has("win32") || has("win64")) + if &shell =~ 'cmd' && has("win32") let target = target \ ->substitute('[?*]', '[&]', 'g') \ ->substitute('[\\]', '?', 'g') |