build: fix compilation failure when configured with --enable-tiny
Этот коммит содержится в:
родитель
b5427ebb98
Коммит
408d9b8708
@ -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;
|
||||
|
@ -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))
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user