diff options
author | Karel Zak <kzak@redhat.com> | 2016-01-25 15:17:36 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2016-01-25 15:17:36 +0100 |
commit | 5243e4ebc8acab655c10c0fcb397132375180eb6 (patch) | |
tree | 43037906a5a984a609a43b1090942a5847d2c526 /libsmartcols | |
parent | e90f4b6715a9e8963d2c9ee7d3a0e9b98364ee30 (diff) | |
download | util-linux-5243e4ebc8acab655c10c0fcb397132375180eb6.tar.gz |
libsmartcols: reduce also SCOLS_FL_WRAP columns
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols')
-rw-r--r-- | libsmartcols/src/table_print.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libsmartcols/src/table_print.c b/libsmartcols/src/table_print.c index 02d9462d5..3a8db7f87 100644 --- a/libsmartcols/src/table_print.c +++ b/libsmartcols/src/table_print.c @@ -995,7 +995,7 @@ static int recount_widths(struct libscols_table *tb, struct libscols_buffer *buf continue; /* never truncate columns with absolute sizes */ if (scols_column_is_tree(cl) && width <= cl->width_treeart) continue; /* never truncate the tree */ - if (trunc_only && !scols_column_is_trunc(cl)) + if (trunc_only && !(scols_column_is_trunc(cl) || scols_column_is_wrap(cl))) continue; if (cl->width == cl->width_min) continue; @@ -1015,7 +1015,6 @@ static int recount_widths(struct libscols_table *tb, struct libscols_buffer *buf cl->width--; width--; } - } if (org == width) { if (trunc_only) |