about summary refs log tree commit diff
path: root/Completion/Core/_display
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-09 09:28:10 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-09 09:28:10 +0000
commitb6dd9af94235f6944970c8c16b329c78d2f6f6da (patch)
treedc612daff2e5476244abf9b63aa9c0c9c1ec9467 /Completion/Core/_display
parent047267bdf3d1c7a145bad11f89aa3f085a8be9e5 (diff)
downloadzsh-b6dd9af94235f6944970c8c16b329c78d2f6f6da.tar.gz
zsh-b6dd9af94235f6944970c8c16b329c78d2f6f6da.tar.xz
zsh-b6dd9af94235f6944970c8c16b329c78d2f6f6da.zip
zsh-workers/7736
Diffstat (limited to 'Completion/Core/_display')
-rw-r--r--Completion/Core/_display7
1 files changed, 6 insertions, 1 deletions
diff --git a/Completion/Core/_display b/Completion/Core/_display
index 5bddeaac1..331915b91 100644
--- a/Completion/Core/_display
+++ b/Completion/Core/_display
@@ -39,7 +39,7 @@ if (( $#_arr )); then
   # descriptions.
 
   _simple=()
-  _len=1
+  _len=-1
   for _i in "$_arr[@]";  do
     _tmp="${#_i%%:*}"
     if [[ "$_i" = *:?* ]]; then
@@ -49,6 +49,11 @@ if (( $#_arr )); then
     fi
   done
 
+  if [[ _len -lt 0 ]]; then
+    eval "${_param}=''"
+    return 1
+  fi
+
   # Now we build the list in `_tmp', adding one line per string.
 
   _tmp=''