terminal-util: make sure we never go below 10 characters line width
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user