aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorNir Tzachar <nir.tzachar@gmail.com>2010-01-13 00:32:35 -0500
committerMichal Marek <mmarek@suse.cz>2010-02-02 08:33:55 -0500
commit68c16edddf41044410fab59d4c179c023cb25afb (patch)
tree4c77bc1fb69993703b6069ddc7b6713c86a3bde6 /scripts/kconfig
parent851190c9304154b7d65596801415229c05994e91 (diff)
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: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Nir Tzachar <nir.tzachar@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/nconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index fb54c98874bc..762caf80ce37 100644
--- a/scripts/kconfig/nconf.c
+++ b/scripts/kconfig/nconf.c
@@ -984,7 +984,7 @@ static void build_conf(struct menu *menu)
984 break; 984 break;
985 default: 985 default:
986 tmp = 2 + strlen(sym_get_string_value(sym)); 986 tmp = 2 + strlen(sym_get_string_value(sym));
987 item_make(menu, 's', "(%s)", 987 item_make(menu, 's', " (%s)",
988 sym_get_string_value(sym)); 988 sym_get_string_value(sym));
989 tmp = indent - tmp + 4; 989 tmp = indent - tmp + 4;
990 if (tmp < 0) 990 if (tmp < 0)
@@ -1072,8 +1072,8 @@ static void show_menu(const char *prompt, const char *instructions,
1072 1072
1073 /* position the menu at the middle of the screen */ 1073 /* position the menu at the middle of the screen */
1074 scale_menu(curses_menu, &maxy, &maxx); 1074 scale_menu(curses_menu, &maxy, &maxx);
1075 maxx = min(maxx, mwin_max_cols); 1075 maxx = min(maxx, mwin_max_cols-2);
1076 maxy = mwin_max_lines-1; 1076 maxy = mwin_max_lines-2;
1077 menu_window = derwin(main_window, 1077 menu_window = derwin(main_window,
1078 maxy, 1078 maxy,
1079 maxx, 1079 maxx,