about summary refs log tree commit diff
path: root/Completion/Base/_describe
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Base/_describe')
-rw-r--r--Completion/Base/_describe2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Base/_describe b/Completion/Base/_describe
index e01c77509..1b3f5f1ef 100644
--- a/Completion/Base/_describe
+++ b/Completion/Base/_describe
@@ -58,7 +58,7 @@ while (( $# )); do
   (( nsets++ ))
   descr="$1"
   [[ -n "$showd" ]] && adescr=( "$adescr[@]" "${(@PM)^descr:#*:?*},$nsets" )
-  if [[ "$2" = -* ]]; then
+  if [[ $# = 1 || "$2" = -* ]]; then
     match=''
     shift
   else