aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-07-23 20:01:55 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-07-24 09:14:26 +0200
commit64727ac01219db0466bd094068cab9ee8044042c (patch)
tree5e4abe15a23d7e941f9f4c8da19522d9e128a8fb
parentc025c049a4a7b0a6dbcd94f804504bba6d081a84 (diff)
downloadrneovim-64727ac01219db0466bd094068cab9ee8044042c.tar.gz
rneovim-64727ac01219db0466bd094068cab9ee8044042c.tar.bz2
rneovim-64727ac01219db0466bd094068cab9ee8044042c.zip
vim-patch:38ce71c: runtime(zip): correctly extract file from zip browser
Problem: Enter 'x' in zip browser fail with E121 Solution: Fix typo in zip#Extract() closes: vim/vim#15321 https://github.com/vim/vim/commit/38ce71c1c323716cc4b130dbb3e8837a8b9a710b Co-authored-by: Damien <141588647+xrandomname@users.noreply.github.com>
-rw-r--r--runtime/autoload/zip.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/autoload/zip.vim b/runtime/autoload/zip.vim
index d0e706e83a..34bcad3368 100644
--- a/runtime/autoload/zip.vim
+++ b/runtime/autoload/zip.vim
@@ -1,11 +1,12 @@
" zip.vim: Handles browsing zipfiles
" AUTOLOAD PORTION
-" Date: Mar 12, 2023
+" Date: Jul 23, 2024
" Version: 33
" Maintainer: This runtime file is looking for a new maintainer.
" Former Maintainer: Charles E Campbell
" Last Change:
" 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)
" Copyright: Copyright (C) 2005-2019 Charles E. Campbell {{{1
" Permission is hereby granted to use and distribute this code,
@@ -395,8 +396,7 @@ fun! zip#Extract()
endif
" 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(shell))
+ call system($"{g:zip_extractcmd} {shellescape(b:zipfile)} {shellescape(fname)}")
" call Decho("zipfile<".b:zipfile.">")
if v:shell_error != 0
echohl Error | echo "***error*** ".g:zip_extractcmd." ".b:zipfile." ".fname.": failed!" | echohl NONE