From a29aa31e93fc3acab74db2fee6d7469082e40a35 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 4 Feb 2022 11:18:52 +0100 Subject: [PATCH] tweaks: when discarding keycodes, don't bother parsing them --- src/prototypes.h | 2 +- src/search.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/prototypes.h b/src/prototypes.h index dda7b95a..94ac3f9a 100644 --- a/src/prototypes.h +++ b/src/prototypes.h @@ -572,7 +572,7 @@ size_t waiting_keycodes(void); #ifdef ENABLE_NANORC void implant(const char *string); #endif -int parse_kbinput(WINDOW *win); +int get_input(WINDOW *win); int get_kbinput(WINDOW *win, bool showcursor); char *get_verbatim_kbinput(WINDOW *win, size_t *count); #ifdef ENABLE_MOUSE diff --git a/src/search.c b/src/search.c index 9eb99e24..afaeffc4 100644 --- a/src/search.c +++ b/src/search.c @@ -289,7 +289,7 @@ int findnextstr(const char *needle, bool whole_word_only, int modus, statusbar(_("Cancelled")); /* Clear out the key buffer (in case a macro is running). */ while (input != ERR) - input = parse_kbinput(NULL); + input = get_input(NULL); nodelay(edit, FALSE); return -2; }