nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit a29aa31e93fc3acab74db2fee6d7469082e40a35
parent 85461399978681f397719ba25ff0fdb49f889a7e
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri,  4 Feb 2022 11:18:52 +0100

tweaks: when discarding keycodes, don't bother parsing them

Diffstat:
Msrc/prototypes.h | 2+-
Msrc/search.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 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 @@ -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; }