From 3d9a4d6257f671657c3b9e45d44381cdc42170cb Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 27 Feb 2017 19:16:06 +0100 Subject: [PATCH] tweaks: make WhereIsNext available in browser in tiny version Also, avoid a warning with with --enable-tiny --enable-browser. --- src/global.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/global.c b/src/global.c index dda30d48..7238f5f1 100644 --- a/src/global.c +++ b/src/global.c @@ -508,8 +508,10 @@ 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"); @@ -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