about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-28 08:08:09 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-28 08:08:09 +0000
commitb63dfb564eb8d48a8909998d39541c3afe9ae0e2 (patch)
treefa0d6a9484331dc0cf0278946391509b92d32e34 /Functions
parent2bfb8fb2148c5022f785e850c542c89f467f6035 (diff)
downloadzsh-b63dfb564eb8d48a8909998d39541c3afe9ae0e2.tar.gz
zsh-b63dfb564eb8d48a8909998d39541c3afe9ae0e2.tar.xz
zsh-b63dfb564eb8d48a8909998d39541c3afe9ae0e2.zip
zsh-workers/8470
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Zle/predict-on2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Zle/predict-on b/Functions/Zle/predict-on
index f02a8138b..7c4133560 100644
--- a/Functions/Zle/predict-on
+++ b/Functions/Zle/predict-on
@@ -113,7 +113,7 @@ delete-no-predict() {
 
 predict-limit-list() {
   if (( compstate[list_lines]+BUFFERLINES > LINES ||
-	compstate[nmatches] > compstate[list_max] ))
+	( compstate[list_max] != 0 && compstate[nmatches] > compstate[list_max] ) ))
   then
     compstate[list]=''
     compstate[force_list]=yes