table printer: Report actual width

When we can't shrink all the way to the desired
number of columns, report the actual width we've
achieved.

Closes: #2496
Approved by: matthiasclasen
This commit is contained in:
Matthias Clasen
2018-12-28 11:13:25 -05:00
committed by Atomic Bot
parent f4e42ec071
commit cefbbd6e59

View File

@@ -503,8 +503,11 @@ flatpak_table_printer_print_full (FlatpakTablePrinter *printer,
if (leftover == 0)
break;
}
}
}
}
for (i = 0; i < printer->n_columns; i++)
width -= shrinks[i];
}
if (flatpak_fancy_output () && has_title)