diff options
Diffstat (limited to 'scripts/kconfig/nconf.c')
-rw-r--r-- | scripts/kconfig/nconf.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c index 87d4b15da951..261f926d8f4b 100644 --- a/scripts/kconfig/nconf.c +++ b/scripts/kconfig/nconf.c | |||
@@ -696,13 +696,18 @@ static void search_conf(void) | |||
696 | { | 696 | { |
697 | struct symbol **sym_arr; | 697 | struct symbol **sym_arr; |
698 | struct gstr res; | 698 | struct gstr res; |
699 | struct gstr title; | ||
699 | char *dialog_input; | 700 | char *dialog_input; |
700 | int dres; | 701 | int dres; |
702 | |||
703 | title = str_new(); | ||
704 | str_printf( &title, _("Enter %s (sub)string to search for " | ||
705 | "(with or without \"%s\")"), CONFIG_, CONFIG_); | ||
706 | |||
701 | again: | 707 | again: |
702 | dres = dialog_inputbox(main_window, | 708 | dres = dialog_inputbox(main_window, |
703 | _("Search Configuration Parameter"), | 709 | _("Search Configuration Parameter"), |
704 | _("Enter " CONFIG_ " (sub)string to search for " | 710 | str_get(&title), |
705 | "(with or without \"" CONFIG_ "\")"), | ||
706 | "", &dialog_input_result, &dialog_input_result_len); | 711 | "", &dialog_input_result, &dialog_input_result_len); |
707 | switch (dres) { | 712 | switch (dres) { |
708 | case 0: | 713 | case 0: |
@@ -712,6 +717,7 @@ again: | |||
712 | _("Search Configuration"), search_help); | 717 | _("Search Configuration"), search_help); |
713 | goto again; | 718 | goto again; |
714 | default: | 719 | default: |
720 | str_free(&title); | ||
715 | return; | 721 | return; |
716 | } | 722 | } |
717 | 723 | ||
@@ -726,6 +732,7 @@ again: | |||
726 | show_scroll_win(main_window, | 732 | show_scroll_win(main_window, |
727 | _("Search Results"), str_get(&res)); | 733 | _("Search Results"), str_get(&res)); |
728 | str_free(&res); | 734 | str_free(&res); |
735 | str_free(&title); | ||
729 | } | 736 | } |
730 | 737 | ||
731 | 738 | ||