From ee1f8a049441ef72e2019329cd790e85b097754a Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 23 Aug 2022 15:31:02 +0200 Subject: [PATCH] prompt: return FALSE for non-editing functions also in the tiny version This fixes https://savannah.gnu.org/bugs/?62942. Bug existed since commit 2f25b6a6 from four days ago. --- src/prompt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/prompt.c b/src/prompt.c index e5b010fb..63f8abf1 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -325,9 +325,10 @@ bool handle_editing(functionptrtype function) else if (function == paste_text) { if (cutbuffer != NULL) paste_into_answer(); - } else - return FALSE; + } #endif + else + return FALSE; /* Don't handle any handled function again. */ return TRUE;