diff options
Diffstat (limited to 'Completion/Core/_multi_parts')
-rw-r--r-- | Completion/Core/_multi_parts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Core/_multi_parts b/Completion/Core/_multi_parts index bdfa26fc3..9f70534fc 100644 --- a/Completion/Core/_multi_parts +++ b/Completion/Core/_multi_parts @@ -59,7 +59,7 @@ pref='' # If the string from the line matches at least one of the strings, # we use only the matching strings. -compadd -O tmp1 -M "r:|${sep}=* r:|=* $matcher" - "$matches[@]" +compadd -O tmp1 -M "r:|${sep}=* r:|=* $matcher" -a matches (( $#tmp1 )) && matches=( "$tmp1[@]" ) @@ -138,7 +138,7 @@ while true; do PREFIX="$pre" SUFFIX="$suf" - compadd -O matches -M "r:|${sep}=* r:|=* $matcher" - "$matches[@]" + compadd -O matches -M "r:|${sep}=* r:|=* $matcher" -a matches if [[ "$pre" = *${sep}* ]]; then PREFIX="${cpre}${pre%%${sep}*}" |