about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compresult.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c
index a325b7be3..13b9edd72 100644
--- a/Src/Zle/compresult.c
+++ b/Src/Zle/compresult.c
@@ -1717,8 +1717,11 @@ calclist(int showall)
                                 ws[tcol] = len;
                             }
                         }
-                        if (width < columns)
+                        if (width < columns) {
+                            if (++tcol < tcols)
+                                tcols = tcol;
                             break;
+                        }
                     }
 		}
 	    }