diff options
author | Karel Zak | 2012-10-23 10:56:23 +0200 |
---|---|---|
committer | Karel Zak | 2012-10-23 10:56:23 +0200 |
commit | c47681b4e42a7445fc4f559c9073b0f590e9986d (patch) | |
tree | f8c254fb00712f17c415a4ccccedb7df53ccb50a /lib | |
parent | lsblk: add SCSI transport type attribute (diff) | |
download | kernel-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |