mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
runtime(zip): correctly extract file from zip browser
Problem: Enter 'x' in zip browser fail with E121 Solution: Fix typo in zip#Extract() closes: #15321 Signed-off-by: Damien <141588647+xrandomname@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
e4b991ed36
commit
38ce71c1c3
@ -1,11 +1,12 @@
|
|||||||
" zip.vim: Handles browsing zipfiles
|
" zip.vim: Handles browsing zipfiles
|
||||||
" AUTOLOAD PORTION
|
" AUTOLOAD PORTION
|
||||||
" Date: Mar 12, 2023
|
" Date: Jul 23, 2024
|
||||||
" Version: 33
|
" Version: 33
|
||||||
" 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
|
||||||
" Last Change:
|
" Last Change:
|
||||||
" 2024 Jun 16 by Vim Project: handle whitespace on Windows properly (#14998)
|
" 2024 Jun 16 by Vim Project: handle whitespace on Windows properly (#14998)
|
||||||
|
" 2024 Jul 23 by Vim Project: fix 'x' command
|
||||||
" 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,
|
||||||
@ -395,8 +396,7 @@ fun! zip#Extract()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" extract the file mentioned under the cursor
|
" extract the file mentioned under the cursor
|
||||||
" call Decho("system(".g:zip_extractcmd." ".shellescape(b:zipfile)." ".shellescape(shell).")")
|
call system($"{g:zip_extractcmd} {shellescape(b:zipfile)} {shellescape(fname)}")
|
||||||
call system(g:zip_extractcmd." ".shellescape(b:zipfile)." ".shellescape(shell))
|
|
||||||
" call Decho("zipfile<".b:zipfile.">")
|
" call Decho("zipfile<".b:zipfile.">")
|
||||||
if v:shell_error != 0
|
if v:shell_error != 0
|
||||||
echohl Error | echo "***error*** ".g:zip_extractcmd." ".b:zipfile." ".fname.": failed!" | echohl NONE
|
echohl Error | echo "***error*** ".g:zip_extractcmd." ".b:zipfile." ".fname.": failed!" | echohl NONE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user