nano

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

commit b38265cfb853e191344a9de3a8ec6b5bb7777cc4
parent b5fb41e96370aabc0f6a95eb9ed8392cae323687
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 18 Aug 2020 09:10:15 +0200

search: retain the current answer when something is toggled

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

Bug existed since version 5.0, commit bccb0ea0.

Diffstat:
Msrc/search.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/search.c b/src/search.c @@ -132,6 +132,8 @@ void search_init(bool replacing, bool retain_answer) break; } + retain_answer = TRUE; + func = func_from_key(&response); /* If we're here, one of the five toggles was pressed, or