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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user