From cd220acea05cd06f7037caf715e8d67f9d36c7f4 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 19 Feb 2003 18:05:51 +0000 Subject: 18262: fix bug where only first match was added with expand style set to suffix --- Completion/Base/Utility/_multi_parts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') 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[@]" \ -- cgit 1.4.1