From 57646196550a12497419a74192acb42f079f525c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 6 May 2019 11:08:22 +0200 Subject: [PATCH] search: stay in the Search menu when trying to Replace in view mode This fixes https://savannah.gnu.org/bugs/?56274. Bug existed since version 3.1, commit 6cd53e7f. --- src/search.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/search.c b/src/search.c index d3f73660..4a681c6a 100644 --- a/src/search.c +++ b/src/search.c @@ -153,9 +153,9 @@ void search_init(bool replacing, bool keep_the_answer) } else if (func == flip_replace) { if (ISSET(VIEW_MODE)) { print_view_warning(); - break; - } - replacing = !replacing; + napms(600); + } else + replacing = !replacing; } else { if (func == flip_goto) do_gotolinecolumn(openfile->current->lineno,