From cfcb3202ef71040a7019609da6cb21de57f16ad6 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 8 May 2000 10:37:58 +0000 Subject: more problems with optional arguments in _arguments (11253) --- Completion/Base/_arguments | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Completion') 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 -- cgit v1.2.3