]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/tt: don't ignore "extreme" columns if an free space is available
authorKarel Zak <kzak@redhat.com>
Tue, 23 Oct 2012 08:56:23 +0000 (10:56 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 23 Oct 2012 08:56:23 +0000 (10:56 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/tt.c

index 6ec967d832aa86e7ed2a91b294c874f397dd2b5d..54a452417d5b70ccde4990de0407151cc71862b1 100644 (file)
--- 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)