diff options
| author | Karel Zak <kzak@redhat.com> | 2012-10-23 10:56:23 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2012-10-23 10:56:23 +0200 |
| commit | c47681b4e42a7445fc4f559c9073b0f590e9986d (patch) | |
| tree | f8c254fb00712f17c415a4ccccedb7df53ccb50a | |
| parent | a5fb4d23ebc8456869e548d7c899d57018abe571 (diff) | |
| download | util-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.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) |
