Skip to content

Commit

Permalink
table-printer: Ellipsize by terminal width by default
Browse files Browse the repository at this point in the history
This fixes the display of ellipsized columns in `flatpak remotes -d`
with wide terminals.
  • Loading branch information
chrisawi authored and smcv committed Mar 27, 2024
1 parent be862f4 commit 2aebcb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/flatpak-table-printer.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,10 @@ flatpak_table_printer_print_full (FlatpakTablePrinter *printer,
void
flatpak_table_printer_print (FlatpakTablePrinter *printer)
{
flatpak_table_printer_print_full (printer, 0, 80, NULL, NULL);
int rows, cols;

flatpak_get_window_size (&rows, &cols);
flatpak_table_printer_print_full (printer, 0, cols, NULL, NULL);
g_print ("\n");
}

Expand Down

0 comments on commit 2aebcb1

Please sign in to comment.