From: Benno Schulenberg Date: Tue, 18 Mar 2014 22:04:41 +0000 (+0000) Subject: In the file browser one cannot search for a regular expression, X-Git-Tag: v2.3.3~277 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=960a1204685093c782075a0917378a32dadebea3;p=nano.git In the file browser one cannot search for a regular expression, so do not mention it in the help text. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4653 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index c7ec3323..53ca081d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-03-18 Benno Schulenberg + * 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 * 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 87297aff..0e7e79cf 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);