commit 408d9b8708c28ba8b8edd29e0cc86a6d3d64f2ab
parent b5427ebb98482faca297f96dc8dd731e05ba76f7
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Wed, 23 May 2018 11:57:55 +0200
build: fix compilation failure when configured with --enable-tiny
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/files.c b/src/files.c
@@ -1110,6 +1110,7 @@ void do_insertfile(void)
i = 0;
}
#endif
+#ifndef NANO_TINY
if (func == flip_pipe) {
/* Remove or add the pipe character at the answer's head. */
if (answer[0] == '|') {
@@ -1126,7 +1127,7 @@ void do_insertfile(void)
given = mallocstrcpy(given, answer);
continue;
}
-
+#endif
/* If we don't have a file yet, go back to the prompt. */
if (i != 0 && (!ISSET(MULTIBUFFER) || i != -2))
continue;
diff --git a/src/global.c b/src/global.c
@@ -1041,10 +1041,11 @@ void shortcut_init(void)
add_to_funcs(flip_newbuffer, MINSERTFILE|MEXTCMD,
N_("New Buffer"), WITHORSANS(newbuffer_gist), TOGETHER, NOVIEW);
#endif
+#ifndef NANO_TINY
if (!ISSET(RESTRICTED))
add_to_funcs(flip_pipe, MEXTCMD,
N_("Pipe Text"), WITHORSANS(pipe_gist), TOGETHER, NOVIEW);
-
+#endif
#ifdef ENABLE_BROWSER
/* The file browser is only available when not in restricted mode. */
if (!ISSET(RESTRICTED))