build: exclude some pieces that are not needed with --disable-nanorc
Этот коммит содержится в:
родитель
958ec294b2
Коммит
5cee9f183b
@ -1269,10 +1269,12 @@ void unbound_key(int code)
|
|||||||
/* TRANSLATORS: This refers to a sequence of escape codes
|
/* TRANSLATORS: This refers to a sequence of escape codes
|
||||||
* (from the keyboard) that nano does not recognize. */
|
* (from the keyboard) that nano does not recognize. */
|
||||||
statusline(AHEM, _("Unknown sequence"));
|
statusline(AHEM, _("Unknown sequence"));
|
||||||
|
#ifdef ENABLE_NANORC
|
||||||
else if (code == MISSING_BRACE)
|
else if (code == MISSING_BRACE)
|
||||||
statusline(AHEM, _("Missing }"));
|
statusline(AHEM, _("Missing }"));
|
||||||
else if (code == NO_SUCH_FUNCTION)
|
else if (code == NO_SUCH_FUNCTION)
|
||||||
statusline(AHEM, _("No such function: %s"), commandname);
|
statusline(AHEM, _("No such function: %s"), commandname);
|
||||||
|
#endif
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
else if (code > KEY_F0 && code < KEY_F0 + 25)
|
else if (code > KEY_F0 && code < KEY_F0 + 25)
|
||||||
/* TRANSLATORS: This refers to an unbound function key. */
|
/* TRANSLATORS: This refers to an unbound function key. */
|
||||||
|
@ -64,8 +64,10 @@ static bool has_more = FALSE;
|
|||||||
/* Whether the current line has more text after the displayed part. */
|
/* Whether the current line has more text after the displayed part. */
|
||||||
static bool is_shorter = TRUE;
|
static bool is_shorter = TRUE;
|
||||||
/* Whether a row's text is narrower than the screen's width. */
|
/* Whether a row's text is narrower than the screen's width. */
|
||||||
|
#ifdef ENABLE_NANORC
|
||||||
static const char *plants_pointer = NULL;
|
static const char *plants_pointer = NULL;
|
||||||
/* Points into the expansion string for the current implantation. */
|
/* Points into the expansion string for the current implantation. */
|
||||||
|
#endif
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
static size_t sequel_column = 0;
|
static size_t sequel_column = 0;
|
||||||
/* The starting column of the next chunk when softwrapping. */
|
/* The starting column of the next chunk when softwrapping. */
|
||||||
@ -395,10 +397,12 @@ int get_input(WINDOW *frame)
|
|||||||
|
|
||||||
if (waiting_codes > 0) {
|
if (waiting_codes > 0) {
|
||||||
waiting_codes--;
|
waiting_codes--;
|
||||||
|
#ifdef ENABLE_NANORC
|
||||||
if (*nextcodes == MORE_PLANTS) {
|
if (*nextcodes == MORE_PLANTS) {
|
||||||
nextcodes++;
|
nextcodes++;
|
||||||
return get_code_from_plantation();
|
return get_code_from_plantation();
|
||||||
} else
|
} else
|
||||||
|
#endif
|
||||||
return *(nextcodes++);
|
return *(nextcodes++);
|
||||||
} else
|
} else
|
||||||
return ERR;
|
return ERR;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user