diff options
Diffstat (limited to 'Completion/Base')
-rw-r--r-- | Completion/Base/_arguments | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index 5581e5bd9..da7a7ad4a 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -319,6 +319,7 @@ if (( $# )) && comparguments -i "$autod" "$@"; then compadd -QqS= - "${PREFIX}${SUFFIX}" else tmp1=( "$next[@]" "$direct[@]" "$odirect[@]" "$equal[@]" ) + [[ "$PREFIX" != --* ]] && tmp1=( "${(@)tmp1:#--*}" ) tmp3=( "${(M@)tmp1:#[-+]?[^:]*}" ) tmp1=( "${(M@)tmp1:#[-+]?(|:*)}" ) tmp2=( "${PREFIX}${(@M)^${(@)${(@)tmp1%%:*}#[-+]}:#?}" ) |