aboutsummaryrefslogtreecommitdiffstats
path: root/src/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c
index 852771764f1..06abcbadd3e 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -307,7 +307,15 @@ Return what remains of the list.")
307 if (pos < BEGV || pos > ZV) 307 if (pos < BEGV || pos > ZV)
308 error ("Changes to be undone are outside visible portion of buffer"); 308 error ("Changes to be undone are outside visible portion of buffer");
309 SET_PT (pos); 309 SET_PT (pos);
310 Finsert (1, &membuf); 310
311 /* Insert before markers so that if the mark is
312 currently on the boundary of this deletion, it
313 ends up on the other side of the now-undeleted
314 text from point. Since undo doesn't even keep
315 track of the mark, this isn't really necessary,
316 but it may lead to better behavior in certain
317 situations. */
318 Finsert_before_markers (1, &membuf);
311 SET_PT (pos); 319 SET_PT (pos);
312 } 320 }
313 } 321 }