terminal-util: make sure we never go below 10 characters line width

This commit is contained in:
Lennart Poettering
2026-07-02 08:20:59 +02:00
parent 6e9a1c4cd6
commit a0b6644796
+2
View File
@@ -555,6 +555,8 @@ int show_menu(char **x,
column_max = LESS_BY(column_max, 6U);
}
/* Never make this narrower than 10 characters */
column_max = MAX(column_max, 10U);
column_width = CLAMP(widest+1, 10U, column_max);
}