From: Karel Zak Date: Tue, 23 Oct 2012 08:56:23 +0000 (+0200) Subject: lib/tt: don't ignore "extreme" columns if an free space is available X-Git-Tag: v2.23-rc1~583 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c47681b4e42a7445fc4f559c9073b0f590e9986d;p=thirdparty%2Futil-linux.git lib/tt: don't ignore "extreme" columns if an free space is available Signed-off-by: Karel Zak --- diff --git a/lib/tt.c b/lib/tt.c index 6ec967d832..54a452417d 100644 --- a/lib/tt.c +++ b/lib/tt.c @@ -568,10 +568,11 @@ static void recount_widths(struct tt *tb, char *buf, size_t bufsz) if (!cl->is_extreme) continue; + /* this column is tooo large, ignore? if (cl->width_max - cl->width > (tb->termwidth - width)) - /* this column is tooo large, ignore */ continue; + */ add = tb->termwidth - width; if (add && cl->width + add > cl->width_max)