aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@mail.ru>2004-08-01 20:12:09 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-01 20:12:09 -0700
commit1768a3ac17e06f3d6e2883929a35ef6a63749192 (patch)
tree935e22d86521b739b63cc442a44a39fe3af0d7b1 /scripts
parent5d87f5bda829d445021911e8fd526b113261f85e (diff)
downloadhistory-1768a3ac17e06f3d6e2883929a35ef6a63749192.tar.gz
[PATCH] Fix menuconfig partial inability to show help texts.
Fix menuconfig inability to show help texts when there is menu item with letter "H" highlighted on the screen. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lxdialog/menubox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lxdialog/menubox.c b/scripts/lxdialog/menubox.c
index a234e9f3b56c5..9544b3c1fb061 100644
--- a/scripts/lxdialog/menubox.c
+++ b/scripts/lxdialog/menubox.c
@@ -71,7 +71,7 @@ print_item (WINDOW * win, const char *item, int choice, int selected, int hotkey
strncpy(menu_item, item, menu_width);
menu_item[menu_width] = 0;
- j = first_alpha(menu_item, "YyNnMm");
+ j = first_alpha(menu_item, "YyNnMmHh");
/* Clear 'residue' of last item */
wattrset (win, menubox_attr);
@@ -279,17 +279,17 @@ dialog_menu (const char *title, const char *prompt, int height, int width,
if (key < 256 && isalpha(key)) key = tolower(key);
- if (strchr("ynm", key))
+ if (strchr("ynmh", key))
i = max_choice;
else {
for (i = choice+1; i < max_choice; i++) {
- j = first_alpha(items[(scroll+i)*2+1], "YyNnMm");
+ j = first_alpha(items[(scroll+i)*2+1], "YyNnMmHh");
if (key == tolower(items[(scroll+i)*2+1][j]))
break;
}
if (i == max_choice)
for (i = 0; i < max_choice; i++) {
- j = first_alpha(items[(scroll+i)*2+1], "YyNnMm");
+ j = first_alpha(items[(scroll+i)*2+1], "YyNnMmHh");
if (key == tolower(items[(scroll+i)*2+1][j]))
break;
}