mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
41265: quote the inserted file names as necessary
This commit is contained in:
parent
6ecc34a55e
commit
cf72c2d288
2 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2017-06-16 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* Wieland Hoffmann: 41265: Functions/Zle/insert-files: quote
|
||||
the inserted file names as necessary
|
||||
|
||||
2017-06-13 Eric Cook <llua@gmx.com>
|
||||
|
||||
* unposted: Functions/Zle/url-quote-magic: fix typo
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ setopt nobadpattern
|
|||
|
||||
local key str files
|
||||
|
||||
files=( *(N) )
|
||||
files=( *(N:q) )
|
||||
if (( $#files )); then
|
||||
zle -R "files: ${str}_" "$files[@]"
|
||||
else
|
||||
|
|
@ -26,7 +26,7 @@ while [[ '#key' -ne '#\\r' && '#key' -ne '#\\n' &&
|
|||
else
|
||||
str="$str$key"
|
||||
fi
|
||||
eval "files=( \${~str}*(N) )"
|
||||
eval "files=( \${~str}*(N:q) )"
|
||||
if (( $#files )); then
|
||||
zle -R "files: ${str}_" "$files[@]"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue