nano

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

commit 25ceefbd895f5493c7077d5b15893f5157e14ec9
parent a37c4bb59e02a6ddcba1899cb9b6a4f7e7abe87e
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 24 Aug 2022 09:23:47 +0200

prompt: ingest queued characters before handling any subsequent function

This fixes https://savannah.gnu.org/bugs/?62946.

Bug existed since commit 40a4225e from five days ago.

Diffstat:
Msrc/prompt.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/prompt.c b/src/prompt.c @@ -462,12 +462,12 @@ functionptrtype acquire_an_answer(int *actual, bool *listed, shortcut = get_shortcut(input); function = (shortcut ? shortcut->func : NULL); - if (function == do_cancel || function == do_enter) - break; - /* When it's a normal character, add it to the answer. */ absorb_character(input, function); + if (function == do_cancel || function == do_enter) + break; + #ifdef ENABLE_TABCOMP if (function == do_tab) { #ifdef ENABLE_HISTORIES