summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-05 12:06:30 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-05 12:06:30 +0000
commit80ac43783a990ecb1e5234e3d7a682508102e42f (patch)
tree2ace88d6cbd969dd1f1d766b9802ad6844c7157c /Completion
parentb8bdb144d2a310632efb3bbd7dd78d4f296bc62f (diff)
downloadzsh-80ac43783a990ecb1e5234e3d7a682508102e42f.tar.gz
zsh-80ac43783a990ecb1e5234e3d7a682508102e42f.tar.xz
zsh-80ac43783a990ecb1e5234e3d7a682508102e42f.zip
support automatically inserted dummy in $words
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Base/_arguments6
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]##[ 	]#}%%[ 	]#}"