replacing: don't let placewewant influence the placement of the cursor

When spotlighting the string to be replaced, placewewant isn't valid,
so tell place_the_cursor() to ignore its value to avoid the cursor
getting mistakenly placed at the beginning of the next row.

This fixes https://savannah.gnu.org/bugs/?50997.
Reported-by: David Lawrence Ramsey <pooka109@gmail.com>
This commit is contained in:
Benno Schulenberg
2017-05-11 22:24:39 +02:00
parent 08fd5b349b
commit 28beb3f9c5
6 changed files with 14 additions and 13 deletions

View File

@@ -1198,7 +1198,7 @@ void do_insertfile(void)
set_modified();
/* Update current_y to account for inserted lines. */
place_the_cursor();
place_the_cursor(TRUE);
refresh_needed = TRUE;
}