mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-29 01:51:20 -05:00
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:
committed by
Atomic Bot
parent
f4e42ec071
commit
cefbbd6e59
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user