diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-05 12:06:30 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-05 12:06:30 +0000 |
commit | 80ac43783a990ecb1e5234e3d7a682508102e42f (patch) | |
tree | 2ace88d6cbd969dd1f1d766b9802ad6844c7157c /Completion/Base | |
parent | b8bdb144d2a310632efb3bbd7dd78d4f296bc62f (diff) | |
download | zsh-80ac43783a990ecb1e5234e3d7a682508102e42f.tar.gz zsh-80ac43783a990ecb1e5234e3d7a682508102e42f.tar.xz zsh-80ac43783a990ecb1e5234e3d7a682508102e42f.zip |
support automatically inserted dummy in $words
Diffstat (limited to 'Completion/Base')
-rw-r--r-- | Completion/Base/_arguments | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index bf263d6e9..29e5764fe 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -192,6 +192,12 @@ if (( $# )) && comparguments -i "$autod" "$@"; then if [[ -n "$matched" ]] || _requested arguments; then _description arguments expl "$descr" + if [[ "$action" = \=\ * ]]; then + action="$action[3,-1]" + words=( "$subc" "$words[@]" ) + (( CURRENT++ )) + fi + if [[ "$action" = -\>* ]]; then comparguments -W line opt_args state="${${action[3,-1]##[ ]#}%%[ ]#}" |