diff options
-rw-r--r-- | libsmartcols/src/table_print.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsmartcols/src/table_print.c b/libsmartcols/src/table_print.c index 5d6173299..67e51076e 100644 --- a/libsmartcols/src/table_print.c +++ b/libsmartcols/src/table_print.c @@ -1346,6 +1346,10 @@ static int recount_widths(struct libscols_table *tb, struct libscols_buffer *buf width--; break; } + + /* hide zero width columns */ + if (cl->width == 0) + cl->flags |= SCOLS_FL_HIDDEN; } /* the current stage is without effect, go to the next */ |