summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarel Zak2012-10-23 10:56:23 +0200
committerKarel Zak2012-10-23 10:56:23 +0200
commitc47681b4e42a7445fc4f559c9073b0f590e9986d (patch)
treef8c254fb00712f17c415a4ccccedb7df53ccb50a /lib
parentlsblk: add SCSI transport type attribute (diff)
downloadkernel-qcow2-util-linux-c47681b4e42a7445fc4f559c9073b0f590e9986d.tar.gz
kernel-qcow2-util-linux-c47681b4e42a7445fc4f559c9073b0f590e9986d.tar.xz
kernel-qcow2-util-linux-c47681b4e42a7445fc4f559c9073b0f590e9986d.zip
lib/tt: don't ignore "extreme" columns if an free space is available
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/tt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tt.c b/lib/tt.c
index 6ec967d83..54a452417 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)