From: Samuel Mendoza-Jonas Date: Wed, 26 Jul 2017 04:08:26 +0000 (+1000) Subject: ui/ncurses: Increase height of boot-editor pad X-Git-Tag: v1.5.1^0 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=52f76a247293597715700eb73bbe102f5a2cd4cf ui/ncurses: Increase height of boot-editor pad Similarly to nc-subset, extend the maximum height of the boot-editor pad to account for the fields of the device select potentially wrapping due to long device names. Signed-off-by: Samuel Mendoza-Jonas --- diff --git a/ui/ncurses/nc-boot-editor.c b/ui/ncurses/nc-boot-editor.c index 8991095..5b098a4 100644 --- a/ui/ncurses/nc-boot-editor.c +++ b/ui/ncurses/nc-boot-editor.c @@ -310,7 +310,7 @@ static int layout_pair(struct boot_editor *boot_editor, int y, static int pad_height(int blockdevs_height) { - return 10 + blockdevs_height; + return 10 + (2 * blockdevs_height); } static void boot_editor_layout_widgets(struct boot_editor *boot_editor)