build: fix compilation failure when configured with --enable-tiny
Этот коммит содержится в:
родитель
b5427ebb98
Коммит
408d9b8708
@ -1110,6 +1110,7 @@ void do_insertfile(void)
|
|||||||
i = 0;
|
i = 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef NANO_TINY
|
||||||
if (func == flip_pipe) {
|
if (func == flip_pipe) {
|
||||||
/* Remove or add the pipe character at the answer's head. */
|
/* Remove or add the pipe character at the answer's head. */
|
||||||
if (answer[0] == '|') {
|
if (answer[0] == '|') {
|
||||||
@ -1126,7 +1127,7 @@ void do_insertfile(void)
|
|||||||
given = mallocstrcpy(given, answer);
|
given = mallocstrcpy(given, answer);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/* If we don't have a file yet, go back to the prompt. */
|
/* If we don't have a file yet, go back to the prompt. */
|
||||||
if (i != 0 && (!ISSET(MULTIBUFFER) || i != -2))
|
if (i != 0 && (!ISSET(MULTIBUFFER) || i != -2))
|
||||||
continue;
|
continue;
|
||||||
|
@ -1041,10 +1041,11 @@ void shortcut_init(void)
|
|||||||
add_to_funcs(flip_newbuffer, MINSERTFILE|MEXTCMD,
|
add_to_funcs(flip_newbuffer, MINSERTFILE|MEXTCMD,
|
||||||
N_("New Buffer"), WITHORSANS(newbuffer_gist), TOGETHER, NOVIEW);
|
N_("New Buffer"), WITHORSANS(newbuffer_gist), TOGETHER, NOVIEW);
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef NANO_TINY
|
||||||
if (!ISSET(RESTRICTED))
|
if (!ISSET(RESTRICTED))
|
||||||
add_to_funcs(flip_pipe, MEXTCMD,
|
add_to_funcs(flip_pipe, MEXTCMD,
|
||||||
N_("Pipe Text"), WITHORSANS(pipe_gist), TOGETHER, NOVIEW);
|
N_("Pipe Text"), WITHORSANS(pipe_gist), TOGETHER, NOVIEW);
|
||||||
|
#endif
|
||||||
#ifdef ENABLE_BROWSER
|
#ifdef ENABLE_BROWSER
|
||||||
/* The file browser is only available when not in restricted mode. */
|
/* The file browser is only available when not in restricted mode. */
|
||||||
if (!ISSET(RESTRICTED))
|
if (!ISSET(RESTRICTED))
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user