tweaks: when discarding keycodes, don't bother parsing them
Этот коммит содержится в:
родитель
8546139997
Коммит
a29aa31e93
@ -572,7 +572,7 @@ size_t waiting_keycodes(void);
|
|||||||
#ifdef ENABLE_NANORC
|
#ifdef ENABLE_NANORC
|
||||||
void implant(const char *string);
|
void implant(const char *string);
|
||||||
#endif
|
#endif
|
||||||
int parse_kbinput(WINDOW *win);
|
int get_input(WINDOW *win);
|
||||||
int get_kbinput(WINDOW *win, bool showcursor);
|
int get_kbinput(WINDOW *win, bool showcursor);
|
||||||
char *get_verbatim_kbinput(WINDOW *win, size_t *count);
|
char *get_verbatim_kbinput(WINDOW *win, size_t *count);
|
||||||
#ifdef ENABLE_MOUSE
|
#ifdef ENABLE_MOUSE
|
||||||
|
@ -289,7 +289,7 @@ int findnextstr(const char *needle, bool whole_word_only, int modus,
|
|||||||
statusbar(_("Cancelled"));
|
statusbar(_("Cancelled"));
|
||||||
/* Clear out the key buffer (in case a macro is running). */
|
/* Clear out the key buffer (in case a macro is running). */
|
||||||
while (input != ERR)
|
while (input != ERR)
|
||||||
input = parse_kbinput(NULL);
|
input = get_input(NULL);
|
||||||
nodelay(edit, FALSE);
|
nodelay(edit, FALSE);
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user