mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
vim-patch:bc29ea6: runtime(zip): simplify condition to detect MS-Windows (#30115)
related: vim/vim#15519
bc29ea6286
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
362389eb15
commit
3bd7492a69
@ -1,6 +1,6 @@
|
|||||||
" zip.vim: Handles browsing zipfiles
|
" zip.vim: Handles browsing zipfiles
|
||||||
" AUTOLOAD PORTION
|
" AUTOLOAD PORTION
|
||||||
" Date: Aug 18, 2024
|
" Date: 2024 Aug 21
|
||||||
" Version: 34
|
" Version: 34
|
||||||
" Maintainer: This runtime file is looking for a new maintainer.
|
" Maintainer: This runtime file is looking for a new maintainer.
|
||||||
" Former Maintainer: Charles E Campbell
|
" 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: workaround for the FreeBSD's unzip
|
||||||
" 2024 Aug 05 by Vim Project: clean-up and make it work with shellslash on Windows
|
" 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 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)
|
" License: Vim License (see vim's :help license)
|
||||||
" Copyright: Copyright (C) 2005-2019 Charles E. Campbell {{{1
|
" Copyright: Copyright (C) 2005-2019 Charles E. Campbell {{{1
|
||||||
" Permission is hereby granted to use and distribute this code,
|
" Permission is hereby granted to use and distribute this code,
|
||||||
@ -341,7 +342,7 @@ fun! zip#Extract()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let target = fname->substitute('\[', '[[]', 'g')
|
let target = fname->substitute('\[', '[[]', 'g')
|
||||||
if &shell =~ 'cmd' && (has("win32") || has("win64"))
|
if &shell =~ 'cmd' && has("win32")
|
||||||
let target = target
|
let target = target
|
||||||
\ ->substitute('[?*]', '[&]', 'g')
|
\ ->substitute('[?*]', '[&]', 'g')
|
||||||
\ ->substitute('[\\]', '?', 'g')
|
\ ->substitute('[\\]', '?', 'g')
|
||||||
|
Loading…
Reference in New Issue
Block a user