Skip to content

Commit bc29ea6

Browse files
committed
runtime(zip): simplify condition to detect MS-Windows
related: #15519 Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 7790ea0 commit bc29ea6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

runtime/autoload/zip.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" zip.vim: Handles browsing zipfiles
22
" AUTOLOAD PORTION
3-
" Date: Aug 18, 2024
3+
" Date: 2024 Aug 21
44
" Version: 34
55
" Maintainer: This runtime file is looking for a new maintainer.
66
" Former Maintainer: Charles E Campbell
@@ -13,6 +13,7 @@
1313
" 2024 Aug 05 by Vim Project: workaround for the FreeBSD's unzip
1414
" 2024 Aug 05 by Vim Project: clean-up and make it work with shellslash on Windows
1515
" 2024 Aug 18 by Vim Project: correctly handle special globbing chars
16+
" 2024 Aug 21 by Vim Project: simplify condition to detect MS-Windows
1617
" License: Vim License (see vim's :help license)
1718
" Copyright: Copyright (C) 2005-2019 Charles E. Campbell {{{1
1819
" Permission is hereby granted to use and distribute this code,
@@ -342,7 +343,7 @@ fun! zip#Extract()
342343
return
343344
endif
344345
let target = fname->substitute('\[', '[[]', 'g')
345-
if &shell =~ 'cmd' && (has("win32") || has("win64"))
346+
if &shell =~ 'cmd' && has("win32")
346347
let target = target
347348
\ ->substitute('[?*]', '[&]', 'g')
348349
\ ->substitute('[\\]', '?', 'g')

0 commit comments

Comments
 (0)