about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorWieland Hoffmann <themineo@gmail.com>2017-06-16 22:28:54 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2017-06-16 22:28:54 -0700
commitcf72c2d288b3d8763055d6553c91277048be0fcc (patch)
tree0ec4e59ebd63cef7ee0af747f7c6331e05c68597 /Functions
parent6ecc34a55e550a893d3962aff1249fa1cdfc3d51 (diff)
downloadzsh-cf72c2d288b3d8763055d6553c91277048be0fcc.tar.gz
zsh-cf72c2d288b3d8763055d6553c91277048be0fcc.tar.xz
zsh-cf72c2d288b3d8763055d6553c91277048be0fcc.zip
41265: quote the inserted file names as necessary
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Zle/insert-files4
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/Zle/insert-files b/Functions/Zle/insert-files
index 10f90ed4a..2d13d82d2 100644
--- a/Functions/Zle/insert-files
+++ b/Functions/Zle/insert-files
@@ -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