Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68c16edd authored by Nir Tzachar's avatar Nir Tzachar Committed by Michal Marek
Browse files

nconfig: minor fix



This patch fixes two problems reported by Jan Engelhardt:
1) Border is now properly placed, to always be visible
2) Long menu items are properly displayed

Reported-by: default avatarJan Engelhardt <jengelh@medozas.de>
Signed-off-by: default avatarNir Tzachar <nir.tzachar@gmail.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent 851190c9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1072,8 +1072,8 @@ static void show_menu(const char *prompt, const char *instructions,

	/* position the menu at the middle of the screen */
	scale_menu(curses_menu, &maxy, &maxx);
	maxx = min(maxx, mwin_max_cols);
	maxy = mwin_max_lines-1;
	maxx = min(maxx, mwin_max_cols-2);
	maxy = mwin_max_lines-2;
	menu_window = derwin(main_window,
			maxy,
			maxx,