nano

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

commit 3d9a4d6257f671657c3b9e45d44381cdc42170cb
parent eb67af9347aac949eeeeaff644bfc59a4fc91164
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Mon, 27 Feb 2017 19:16:06 +0100

tweaks: make WhereIsNext available in browser in tiny version

Also, avoid a warning with with --enable-tiny --enable-browser.

Diffstat:
Msrc/global.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/global.c b/src/global.c @@ -508,9 +508,11 @@ void shortcut_init(void) #ifndef DISABLE_BROWSER const char *nano_browser_whereis_msg = N_("Search for a string"); const char *nano_browser_refresh_msg = N_("Refresh the file list"); +#ifndef NANO_TINY const char *nano_browser_lefthand_msg = N_("Go to lefthand column"); const char *nano_browser_righthand_msg = N_("Go to righthand column"); #endif +#endif const char *nano_prevpage_msg = N_("Go one screenful up"); const char *nano_nextpage_msg = N_("Go one screenful down"); const char *nano_cut_msg = @@ -1018,11 +1020,9 @@ void shortcut_init(void) add_to_funcs(discard_buffer, MWRITEFILE, N_("Discard buffer"), IFSCHELP(nano_discard_buffer_msg), BLANKAFTER, NOVIEW); -#if !defined(NANO_TINY) && !defined(DISABLE_BROWSER) +#ifndef DISABLE_BROWSER add_to_funcs(do_research, MBROWSER, whereis_next_tag, IFSCHELP(nano_whereis_next_msg), TOGETHER, VIEW); -#endif -#ifndef DISABLE_BROWSER add_to_funcs(total_refresh, MBROWSER, refresh_tag, IFSCHELP(nano_browser_refresh_msg), BLANKAFTER, VIEW); #ifndef NANO_TINY