build: fix compilation failure when configured with --enable-tiny

master
Benno Schulenberg 2018-05-23 11:57:55 +02:00
parent b5427ebb98
commit 408d9b8708
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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))