diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-27 13:43:43 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-27 13:43:43 +0000 |
commit | df7d6b3e439c7401e1e1c8ab76a603f001402ea3 (patch) | |
tree | 9dff2c8698df9a59a8624cb05356b98add14fbc4 /Completion/Base | |
parent | bd29ea48ec58524eee4c2cf9409cde340389488c (diff) | |
download | zsh-df7d6b3e439c7401e1e1c8ab76a603f001402ea3.tar.gz zsh-df7d6b3e439c7401e1e1c8ab76a603f001402ea3.tar.xz zsh-df7d6b3e439c7401e1e1c8ab76a603f001402ea3.zip |
zsh-workers/7517
Diffstat (limited to 'Completion/Base')
-rw-r--r-- | Completion/Base/_arguments | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index ac9a5fa76..bcdbde373 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -465,18 +465,19 @@ else _description expl option if [[ -n "$sopts" && -n "$PREFIX" && "$PREFIX" = [-+]${~soptseq}[$sopts] ]]; then if [[ "$PREFIX" = [-+]${~soptseq1} ]]; then - compadd "$expl[@]" -Q \ + compadd "$expl[@]" -Q -M 'r:|_=* r:|=*' \ -y "( ${(j: :)${(@M)${(@k)opts}:#[-+]?}} ${(j: :)${(@M)${(@k)dopts}:#[-+]?}} ${(j: :)${(@M)${(@k)odopts}:#[-+]?}} )" - \ "${PREFIX}${(@k)^opts[(I)${PREFIX[1]}?]#?}" \ "${PREFIX}${(@k)^dopts[(I)${PREFIX[1]}?]#?}" \ "${PREFIX}${(@k)^odopts[(I)${PREFIX[1]}?]#?}" && ret=0 else - # The last option takes an argument in next word. - compadd "$expl[@]" -Q - "${PREFIX}" && ret=0 + # The last option takes an argument in the next word. + compadd "$expl[@]" -Q -M 'r:|_=* r:|=*' - "${PREFIX}" && ret=0 fi else - compadd "$expl[@]" -Q - "${(@k)opts}" "${(@k)odopts}" && ret=0 - compadd "$expl[@]" -QS '' - "${(@k)dopts}" && ret=0 + compadd "$expl[@]" -Q -M 'r:|_=* r:|=*' - \ + "${(@k)opts}" "${(@k)odopts}" && ret=0 + compadd "$expl[@]" -QS '' -M 'r:|_=* r:|=*' - "${(@k)dopts}" && ret=0 fi fi [[ $#long -ne 0 && @@ -530,7 +531,7 @@ else _description expl "$descr" - if [[ -z "$action" ]]; then + if [[ "$action" = \ # ]]; then # An empty action means that we should just display a message. |