about summary refs log tree commit diff
diff options
context:
space:
mode:
-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