From 80ac43783a990ecb1e5234e3d7a682508102e42f Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 5 Apr 2000 12:06:30 +0000 Subject: support automatically inserted dummy in $words --- Completion/Base/_arguments | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Completion') 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]##[ ]#}%%[ ]#}" -- cgit 1.4.1