aboutsummaryrefslogtreecommitdiff
path: root/scripts/kconfig/mconf.c
diff options
context:
space:
mode:
authorGravatar Dirk Gouders <dirk@gouders.net> 2013-05-19 21:48:44 +0200
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr> 2013-05-30 00:13:32 +0200
commit063f4661fde8c03c4c03f8a205071a52691c152e (patch)
tree59bb40ca59243d85c9ce2710bfb8b968e43b097c /scripts/kconfig/mconf.c
parentscripts/config: fix assignment of parameters for short version of --*-after o... (diff)
downloadlinux-063f4661fde8c03c4c03f8a205071a52691c152e.tar.gz
linux-063f4661fde8c03c4c03f8a205071a52691c152e.tar.bz2
linux-063f4661fde8c03c4c03f8a205071a52691c152e.zip
mconf: handle keys in empty dialogs
When entering an empty dialog, using the movement keys resulted in unexpected characters beeing displayed, other keys like "z" and "h" did not work as expected. This patch handles the movement keys as well as other keys, especially "z", "h" and "/". Signed-off-by: Dirk Gouders <dirk@gouders.net> [yann.morin.1998@free.fr: keep lines <80 chars, so reorder test] Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'scripts/kconfig/mconf.c')
-rw-r--r--scripts/kconfig/mconf.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 387dc8daf7b2..a69cbd78fb38 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -670,11 +670,12 @@ static void conf(struct menu *menu, struct menu *active_menu)
active_menu, &s_scroll);
if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL)
break;
- if (!item_activate_selected())
- continue;
- if (!item_tag())
- continue;
-
+ if (item_count() != 0) {
+ if (!item_activate_selected())
+ continue;
+ if (!item_tag())
+ continue;
+ }
submenu = item_data();
active_menu = item_data();
if (submenu)