From 99fa20645c7768c3c6c56b7c9234c26c41a05abd Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Tue, 25 Apr 2017 20:42:05 +0200 Subject: [PATCH] tweaks: avoid an unused-variable warning That is: nest the conditions consistently. And in the bargain rename the variable. --- src/global.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/global.c b/src/global.c index b0e5215c..9808892e 100644 --- a/src/global.c +++ b/src/global.c @@ -621,11 +621,11 @@ void shortcut_init(void) const char *nano_prepend_msg = N_("Toggle prepending"); const char *nano_backup_msg = N_("Toggle backing up of the original file"); const char *nano_execute_msg = N_("Execute external command"); -#endif - const char *nano_discard_buffer_msg = N_("Close buffer without saving it"); #ifndef DISABLE_MULTIBUFFER - const char *nano_multibuffer_msg = N_("Toggle the use of a new buffer"); + const char *nano_newbuffer_msg = N_("Toggle the use of a new buffer"); #endif +#endif + const char *nano_discard_buffer_msg = N_("Close buffer without saving it"); #ifndef DISABLE_BROWSER const char *nano_exitbrowser_msg = N_("Exit from the file browser"); const char *nano_firstfile_msg = N_("Go to the first file in the list"); @@ -992,7 +992,7 @@ void shortcut_init(void) #ifndef DISABLE_MULTIBUFFER add_to_funcs(new_buffer_void, MINSERTFILE|MEXTCMD, - N_("New Buffer"), IFSCHELP(nano_multibuffer_msg), TOGETHER, NOVIEW); + N_("New Buffer"), IFSCHELP(nano_newbuffer_msg), TOGETHER, NOVIEW); #endif } #endif /* !NANO_TINY */ -- GitLab