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.
master
Benno Schulenberg 2020-08-18 09:10:15 +02:00
parent b5fb41e963
commit b38265cfb8
1 changed files with 2 additions and 0 deletions

View File

@ -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