From b5594215dd13afd833314e973358965f0cd7d60b Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 3 May 2000 08:35:33 +0000 Subject: make sure that completion messages are displayed even when there are no matches (11092) --- Completion/Base/_arguments | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index 38002ccf6..cab1f778a 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -363,7 +363,7 @@ if (( $# )) && comparguments "$multi[@]" "$autod" "$@"; then [[ -n "$mesg" ]] && _message "$mesg" if [[ -n "$noargs" ]]; then - [[ -z "$ismulti" ]] && _message "$noargs" + [[ -z "$ismulti" && nm -eq "$compstate[nmatches]" ]] && _message "$noargs" else has_args=yes fi -- cgit 1.4.1