Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61846
b: refs/heads/master
c: 0584f9f
h: refs/heads/master
v: v3
  • Loading branch information
Bernhard Walle authored and Sam Ravnborg committed Jul 17, 2007
1 parent b8ce4fc commit 7652420
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c05190371d5ca360b75864cfcf930e8bf3addeb1
refs/heads/master: 0584f9f9cb3642274cc0f289f36524827868fe68
11 changes: 9 additions & 2 deletions trunk/scripts/kconfig/mconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,13 @@ static void search_conf(void)
{
struct symbol **sym_arr;
struct gstr res;
char *dialog_input;
int dres;
again:
dialog_clear();
dres = dialog_inputbox(_("Search Configuration Parameter"),
_("Enter CONFIG_ (sub)string to search for (omit CONFIG_)"),
_("Enter CONFIG_ (sub)string to search for "
"(with or without \"CONFIG\")"),
10, 75, "");
switch (dres) {
case 0:
Expand All @@ -435,7 +437,12 @@ static void search_conf(void)
return;
}

sym_arr = sym_re_search(dialog_input_result);
/* strip CONFIG_ if necessary */
dialog_input = dialog_input_result;
if (strncasecmp(dialog_input_result, "CONFIG_", 7) == 0)
dialog_input += 7;

sym_arr = sym_re_search(dialog_input);
res = get_relations_str(sym_arr);
free(sym_arr);
show_textbox(_("Search Results"), str_get(&res), 0, 0);
Expand Down

0 comments on commit 7652420

Please sign in to comment.