summaryrefslogtreecommitdiff
path: root/scripts/kconfig/conf.c
Side-by-side diff
Diffstat (limited to 'scripts/kconfig/conf.c') (more/less context) (ignore whitespace changes)
-rw-r--r--scripts/kconfig/conf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 74c94c2..1602d5f 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -116,4 +116,5 @@ static void conf_askvalue(struct symbol *sym, const char *def)
}
case ask_all:
+ fflush(stdout);
fgets(line, 128, stdin);
return;
@@ -343,4 +344,6 @@ static int conf_choice(struct menu *menu)
case ask_silent:
case ask_all:
+ if (is_new)
+ sym->flags |= SYMBOL_NEW;
conf_askvalue(sym, menu_get_prompt(def_menu));
strip(line);
@@ -358,5 +361,5 @@ static int conf_choice(struct menu *menu)
}
if (line[0]) {
- len = strlen(line) - 1;
+ len = strlen(line);
line[len] = 0;
@@ -365,5 +368,5 @@ static int conf_choice(struct menu *menu)
if (!cmenu->sym || !menu_is_visible(cmenu))
continue;
- if (!strncmp(line, menu_get_prompt(cmenu), len)) {
+ if (!strncasecmp(line, menu_get_prompt(cmenu), len)) {
def_menu = cmenu;
break;