diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-10-05 12:44:00 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-10-05 12:44:00 +0000 |
commit | aac666130c107cddbefe3531b8f7ab8370132dfe (patch) | |
tree | 5235ac9edf23ecc318a22db21ceb767cea81f83d /Src/Zle | |
parent | 4bf4818f5a4ffc04f98c796c8b44dd7472fc771b (diff) | |
download | zsh-aac666130c107cddbefe3531b8f7ab8370132dfe.tar.gz zsh-aac666130c107cddbefe3531b8f7ab8370132dfe.tar.xz zsh-aac666130c107cddbefe3531b8f7ab8370132dfe.zip |
fix calculation of number of columns needed with list_packed (15946)
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/compresult.c | 5 |
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; + } } } } |