Commit 68c16edddf41044410fab59d4c179c023cb25afb
Committed by
Michal Marek
1 parent
851190c930
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
scripts/kconfig/nconf.c
... | ... | @@ -984,7 +984,7 @@ |
984 | 984 | break; |
985 | 985 | default: |
986 | 986 | tmp = 2 + strlen(sym_get_string_value(sym)); |
987 | - item_make(menu, 's', "(%s)", | |
987 | + item_make(menu, 's', " (%s)", | |
988 | 988 | sym_get_string_value(sym)); |
989 | 989 | tmp = indent - tmp + 4; |
990 | 990 | if (tmp < 0) |
... | ... | @@ -1072,8 +1072,8 @@ |
1072 | 1072 | |
1073 | 1073 | /* position the menu at the middle of the screen */ |
1074 | 1074 | scale_menu(curses_menu, &maxy, &maxx); |
1075 | - maxx = min(maxx, mwin_max_cols); | |
1076 | - maxy = mwin_max_lines-1; | |
1075 | + maxx = min(maxx, mwin_max_cols-2); | |
1076 | + maxy = mwin_max_lines-2; | |
1077 | 1077 | menu_window = derwin(main_window, |
1078 | 1078 | maxy, |
1079 | 1079 | maxx, |