From 47e82b1752a36b4bc657a014cc12a717f9293bcd Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Tue, 28 Sep 2004 22:21:46 +0000 Subject: [PATCH] fix #ifdef breakage git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1953 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/files.c | 2 +- src/global.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/files.c b/src/files.c index 76190402..5626c047 100644 --- a/src/files.c +++ b/src/files.c @@ -523,9 +523,9 @@ void do_insertfile(void) if (i == NANO_EXTCMD_KEY) { int j; +#ifdef ENABLE_MULTIBUFFER exec_again: /* Go here when the user toggles multibuffer mode. */ -#ifdef ENABLE_MULTIBUFFER if (ISSET(MULTIBUFFER)) msg = N_("Command to execute in new buffer"); else diff --git a/src/global.c b/src/global.c index 2d852271..39a1effa 100644 --- a/src/global.c +++ b/src/global.c @@ -247,7 +247,9 @@ void shortcut_init(int unjustify) const char *regexp_msg = N_("Regexp"); #endif const char *history_msg = N_("History"); +#ifdef ENABLE_MULTIBUFFER const char *new_buffer_msg = N_("New Buffer"); +#endif #endif /* !NANO_SMALL */ #ifndef DISABLE_BROWSER const char *to_files_msg = N_("To Files"); @@ -940,10 +942,12 @@ void shortcut_init(int unjustify) IFHELP(nano_cancel_msg, NANO_NO_KEY), NANO_NO_KEY, NANO_NO_KEY, VIEW, 0); +#ifdef ENABLE_MULTIBUFFER sc_init_one(&extcmd_list, NANO_NO_KEY, new_buffer_msg, IFHELP(nano_multibuffer_msg, TOGGLE_MULTIBUFFER_KEY), NANO_NO_KEY, NANO_NO_KEY, NOVIEW, 0); #endif +#endif #ifndef DISABLE_BROWSER free_shortcutage(&browser_list); -- 2.39.5