]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(zip): simplify condition to detect MS-Windows
authorChristian Brabandt <cb@256bit.org>
Wed, 21 Aug 2024 06:18:44 +0000 (08:18 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 21 Aug 2024 06:20:13 +0000 (08:20 +0200)
related: #15519

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

index a7a7e579a2f319dafc2feeded8192f3e8769f3c1..4a53fc5f28656aa7bae886240e06a57702bde7e2 100644 (file)
@@ -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,
@@ -342,7 +343,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')