]> git.eshelyaron.com Git - emacs.git/commit
In insert_file_contents, always set windows' point markers.
authorAlan Mackenzie <acm@muc.de>
Fri, 12 Nov 2021 18:43:22 +0000 (18:43 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 12 Nov 2021 18:43:22 +0000 (18:43 +0000)
commit974192413f8a81171b8fd28dfd5c081ce06d3dec
tree5d9dfc6b4a9b16de5d4d00e3d4fc129bf606a35c
parent2c5be6ddca96443722e5e527a015b1d3574ed081
In insert_file_contents, always set windows' point markers.

This fixes bug #51776.

* src/fileio.c (restore_window_points): Restore a w->mpoint even when that
marker originally pointed into the unchanged area near BOB or EOB.  This
prevents that window's point being moved a long way from its starting place
due to the removal of the central part of the buffer by insert_file_contents.
src/fileio.c