]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
firstboot: Make the option list fit 80 columns
authorFabian Vogt <fvogt@suse.de>
Tue, 2 Jul 2024 14:15:50 +0000 (16:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Jul 2024 09:54:57 +0000 (11:54 +0200)
22 characters in three colums + overhead slightly exceeds the available
width on terminals with 80 columns, causing each row to wrap to two lines.
Reduce the item width to 20 to fit even the list of ~600 timezones.

src/firstboot/firstboot.c

index 6afabef4307663f97dcf1fa3dcb15d36c73f839e..92b0289859ab025207bac5b1c488bd0a0b334e7f 100644 (file)
@@ -215,7 +215,7 @@ static int prompt_loop(const char *text, char **l, unsigned percentage, bool (*i
                 }
 
                 if (streq(p, "list")) {
-                        r = show_menu(l, 3, 22, percentage);
+                        r = show_menu(l, 3, 20, percentage);
                         if (r < 0)
                                 return r;