From 6626f6dc864341f46001f63761a5ed8510a75f90 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 9 May 2000 09:44:26 +0000 Subject: fix for _arguments without options and no more arguments to complete (11272) --- Completion/Base/_arguments | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Completion') diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index 845f828ef..7be7bef8c 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -182,8 +182,10 @@ if (( $# )) && comparguments "$multi[@]" "$autod" "$@"; then else noargs='no arguments' fi - comparguments -O next direct odirect equal || return 1 - + if ! comparguments -O next direct odirect equal; then + _message "$noargs" + return 1 + fi opts=yes _tags options fi -- cgit 1.4.1