about summary refs log tree commit diff
path: root/Completion/Base/Utility
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-02-19 18:05:51 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-02-19 18:05:51 +0000
commitcd220acea05cd06f7037caf715e8d67f9d36c7f4 (patch)
tree5a5d131951c32364f5889fdc3c58b46718a9d998 /Completion/Base/Utility
parent079ed781395c9b72af420adddf5309c996758be6 (diff)
downloadzsh-cd220acea05cd06f7037caf715e8d67f9d36c7f4.tar.gz
zsh-cd220acea05cd06f7037caf715e8d67f9d36c7f4.tar.xz
zsh-cd220acea05cd06f7037caf715e8d67f9d36c7f4.zip
18262: fix bug where only first match was added with expand style set to suffix
Diffstat (limited to 'Completion/Base/Utility')
-rw-r--r--Completion/Base/Utility/_multi_parts2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Base/Utility/_multi_parts b/Completion/Base/Utility/_multi_parts
index 93f2bbd56..615ef79f2 100644
--- a/Completion/Base/Utility/_multi_parts
+++ b/Completion/Base/Utility/_multi_parts
@@ -114,7 +114,7 @@ while true; do
 	if [[ $#imm -ne 0 && $#matches -eq 1 ]] ||
            zstyle -t ":completion:${curcontext}:" expand suffix; then
 	  compadd "$group[@]" "$expl[@]" "$sopts[@]" \
-                  -M "r:|${sep}=* r:|=* $matcher" - "$pref$matches[1]"
+                  -M "r:|${sep}=* r:|=* $matcher" - $pref$matches
         else
 	  if (( $matches[(I)${tmp1[1]}${sep}*] )); then
 	    compadd "$group[@]" "$expl[@]" -p "$pref" -r "$sep" -S "$sep" "$opts[@]" \