about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-09 09:44:26 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-09 09:44:26 +0000
commit6626f6dc864341f46001f63761a5ed8510a75f90 (patch)
treeea893d2188e4499bd0138c3725edfc73d0f080d5 /Completion/Base
parent125dc0d4f2a3c1c4efe942e4d92c412583582f9d (diff)
downloadzsh-6626f6dc864341f46001f63761a5ed8510a75f90.tar.gz
zsh-6626f6dc864341f46001f63761a5ed8510a75f90.tar.xz
zsh-6626f6dc864341f46001f63761a5ed8510a75f90.zip
fix for _arguments without options and no more arguments to complete (11272)
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/_arguments6
1 files changed, 4 insertions, 2 deletions
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