summaryrefslogtreecommitdiff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_multi_parts4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Core/_multi_parts b/Completion/Core/_multi_parts
index b59550a7f..fe1406832 100644
--- a/Completion/Core/_multi_parts
+++ b/Completion/Core/_multi_parts
@@ -113,7 +113,7 @@ while true; do
if [[ $#imm -ne 0 && $#matches -eq 1 ]] ||
zstyle -t ":completion:${curcontext}:" expand suffix; then
- compadd "$group[@]" "$expl[@]" "$opts[@]" \
+ compadd "$group[@]" "$expl[@]" "$sopts[@]" \
-M "r:|${sep}=* r:|=* $matcher" - "$pref$matches[1]"
else
if (( $matches[(I)${tmp1[1]}${sep}*] )); then
@@ -235,7 +235,7 @@ while true; do
SUFFIX=""
if [[ -n "$pref" && "$orig" != "$pref" ]]; then
- if [[ "$pref" = *${sep} ]]; then
+ if [[ "$pref" = *${sep}*${sep} ]]; then
compadd "$group[@]" "$expl[@]" "$opts[@]" \
-p "${pref%${sep}*${sep}}${sep}" -S "$sep" \
-M "r:|${sep}=* r:|=* $matcher" - "${${pref%${sep}}##*${sep}}"