]> git.wh0rd.org Git - nano.git/commitdiff
Fix for bug #22780: build failure with --enable-multibuffer --enable-tiny
authorChris Allegretta <chrisa@asty.org>
Mon, 31 Mar 2008 06:25:14 +0000 (06:25 +0000)
committerChris Allegretta <chrisa@asty.org>
Mon, 31 Mar 2008 06:25:14 +0000 (06:25 +0000)
Plus make the actual prompt work with --enable-tiny when inserting files.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4248 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/files.c
src/global.c

index fd3e14dc823555cccbc49af14ed91b4bc07ea7a6..23898446dc25a84af8b9135e7c99fbba21b79d43 100644 (file)
@@ -738,7 +738,9 @@ void do_insertfile(
 #endif
                MINSERTFILE, ans,
                &meta_key, &func_key,
+#ifndef NANO_TINY
                NULL,
+#endif
                edit_refresh, msg,
 #ifndef DISABLE_OPERATINGDIR
                operating_dir != NULL && strcmp(operating_dir,
index 85e91590e1ff382118a39620037dfcd5fd9c1129..66935219f103b02279cf4f1029765f13b5b4cbf2 100644 (file)
@@ -830,9 +830,9 @@ void shortcut_init(bool unjustify)
 
 #ifdef ENABLE_MULTIBUFFER
     add_to_funcs(switch_to_prev_buffer_void, MMAIN, _("Previous File"),
-       nano_prevfile_msg, FALSE, VIEW);
+       IFSCHELP(nano_prevfile_msg), FALSE, VIEW);
     add_to_funcs(switch_to_next_buffer_void, MMAIN, N_("Next File"),
-       nano_nextfile_msg, TRUE, VIEW);
+       IFSCHELP(nano_nextfile_msg), TRUE, VIEW);
 #endif
 
     add_to_funcs(do_verbatim_input, MMAIN, N_("Verbatim Input"),