commit bb394990cd2570ff9aec4394f40df06a39db778c
parent 7c5d099c6f123c0fb556b17bdaef9498792dbf19
Author: Liu Hao <lh_mouse@126.com>
Date: Thu, 12 Apr 2018 19:33:41 +0800
replacing: always clear the backwards flag for ^\, just like for ^W
This makes it easier to predict in which direction the replacements
will go when hitting ^\ or M-R.
Signed-off-by: Liu Hao <lh_mouse@126.com>
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/search.c b/src/search.c
@@ -702,8 +702,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. */