summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-08 10:37:58 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-08 10:37:58 +0000
commitcfcb3202ef71040a7019609da6cb21de57f16ad6 (patch)
tree09f31917a9a2f1407b615f96f9691b707b579b97 /Completion/Base
parent9ae8f0fe090abfbcf29867f1edec506076ab4353 (diff)
downloadzsh-cfcb3202ef71040a7019609da6cb21de57f16ad6.tar.gz
zsh-cfcb3202ef71040a7019609da6cb21de57f16ad6.tar.xz
zsh-cfcb3202ef71040a7019609da6cb21de57f16ad6.zip
more problems with optional arguments in _arguments (11253)
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/_arguments6
1 files changed, 2 insertions, 4 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments
index 195f03f82..845f828ef 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -234,9 +234,8 @@ if (( $# )) && comparguments "$multi[@]" "$autod" "$@"; then
 
               # An empty action means that we should just display a message.
 
-              [[ -n "$matched" ]] &&
-                  compadd -n -Q -S '' -s "$SUFFIX" - "$PREFIX"
-              mesg="$descr"
+	      _message "$descr"
+	      mesg=yes
 
             elif [[ "$action" = \(\(*\)\) ]]; then
 
@@ -361,7 +360,6 @@ if (( $# )) && comparguments "$multi[@]" "$autod" "$@"; then
 
   [[ -n "$aret" ]] && return 300
 
-  [[ -n "$mesg" ]] && _message "$mesg"
   if [[ -n "$noargs" ]]; then
     [[ -z "$ismulti" && nm -eq "$compstate[nmatches]" ]] && _message "$noargs"
   else