summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Base/_arguments6
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 57197469b..d5b3faac4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2000-05-09 Sven Wischnowsky <wischnow@zsh.org>
+ * 11272: Completion/Base/_arguments: fix for _arguments without
+ options and no more arguments to complete
+
* 11270: Doc/Zsh/compsys.yo, Src/Zle/computil.c: new -A and -S
options to _arguments; `-opt=-' specs for options whose argument
has to come after the `='
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