aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2012-10-23 10:56:23 +0200
committerKarel Zak <kzak@redhat.com>2012-10-23 10:56:23 +0200
commitc47681b4e42a7445fc4f559c9073b0f590e9986d (patch)
treef8c254fb00712f17c415a4ccccedb7df53ccb50a
parenta5fb4d23ebc8456869e548d7c899d57018abe571 (diff)
downloadutil-linux-c47681b4e42a7445fc4f559c9073b0f590e9986d.tar.gz
lib/tt: don't ignore "extreme" columns if an free space is available
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--lib/tt.c3
1 files changed, 2 insertions, 1 deletions
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)