diff options
author | Nir Tzachar <nir.tzachar@gmail.com> | 2010-01-13 07:32:35 +0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-02-02 14:33:55 +0100 |
commit | 68c16edddf41044410fab59d4c179c023cb25afb (patch) | |
tree | 4c77bc1fb69993703b6069ddc7b6713c86a3bde6 /scripts/kconfig | |
parent | 851190c9304154b7d65596801415229c05994e91 (diff) | |
download | linux-stable-68c16edddf41044410fab59d4c179c023cb25afb.tar.gz linux-stable-68c16edddf41044410fab59d4c179c023cb25afb.tar.bz2 linux-stable-68c16edddf41044410fab59d4c179c023cb25afb.zip |
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.c | 6 |
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) break; default: tmp = 2 + strlen(sym_get_string_value(sym)); - item_make(menu, 's', "(%s)", + item_make(menu, 's', " (%s)", sym_get_string_value(sym)); tmp = indent - tmp + 4; if (tmp < 0) @@ -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, |