From aac666130c107cddbefe3531b8f7ab8370132dfe Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 5 Oct 2001 12:44:00 +0000 Subject: fix calculation of number of columns needed with list_packed (15946) --- Src/Zle/compresult.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Src') 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; + } } } } -- cgit 1.4.1