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>
master
Liu Hao 2018-04-12 19:33:41 +08:00 committed by Benno Schulenberg
parent 7c5d099c6f
commit bb394990cd
1 changed files with 3 additions and 1 deletions

View File

@ -702,9 +702,11 @@ 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. */
void ask_for_replacement(void)