diff --git a/ChangeLog b/ChangeLog index c7ec33236dab96ee99bb44ab669650e614acdc06..53ca081dd513a8b29ba2baecfa716ce48acf3070 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-03-18 Benno Schulenberg <bensberg@justemail.net> + * src/global.c (shortcut_init) - In the file browser one cannot + search for a regular expression, so do not mention it. + 2014-03-17 Benno Schulenberg <bensberg@justemail.net> * src/global.c (shortcut_init) - Show ^F and ^B instead of kright and kleft in the help lines of the tiny version. diff --git a/src/global.c b/src/global.c index 87297aff54a3dbf0a3dc87ed09a71dd754104bd2..0e7e79cf64151d0e5b6a27f3b3608020b582e850 100644 --- a/src/global.c +++ b/src/global.c @@ -613,6 +613,8 @@ void shortcut_init(bool unjustify) N_("Insert another file into the current one"); const char *nano_whereis_msg = N_("Search for a string or a regular expression"); + const char *nano_browser_whereis_msg = + N_("Search for a string"); const char *nano_prevpage_msg = N_("Go to previous screen"); const char *nano_nextpage_msg = N_("Go to next screen"); const char *nano_cut_msg = @@ -794,9 +796,12 @@ void shortcut_init(bool unjustify) NOVIEW); #endif - add_to_funcs(do_search, MMAIN|MBROWSER, whereis_msg, + add_to_funcs(do_search, MMAIN, whereis_msg, IFSCHELP(nano_whereis_msg), FALSE, VIEW); + add_to_funcs(do_search, MBROWSER, whereis_msg, + IFSCHELP(nano_browser_whereis_msg), FALSE, VIEW); + #ifndef NANO_TINY add_to_funcs(do_research, MBROWSER, whereis_next_msg, IFSCHELP(nano_whereis_next_msg), TRUE, VIEW);