From 7553ac4e8bbdf2937aa6fcde8d753746e193f93c Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Thu, 12 Apr 2018 19:33:41 +0800 Subject: [PATCH] search: always clear the backwards flag on ^\, just like ^W Signed-off-by: Liu Hao --- src/search.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index d9aa850..b61b705 100644 --- a/src/search.c +++ b/src/search.c @@ -709,8 +709,10 @@ void do_replace(void) { if (ISSET(VIEW_MODE)) print_view_warning(); - else + else { + UNSET(BACKWARDS_SEARCH); search_init(TRUE, FALSE); + } } /* Ask the user what the already given search string should be replaced with. */ -- 2.7.4