nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 960a1204685093c782075a0917378a32dadebea3
parent a65ef4244c077b80f37d792e48829ea7b41e7631
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Tue, 18 Mar 2014 22:04:41 +0000

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

Diffstat:
MChangeLog | 4++++
Msrc/global.c | 7++++++-
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git 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 @@ -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);