diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/undo.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/undo.c b/src/undo.c index 9a139456927..b8b1146a956 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -477,14 +477,12 @@ Return what remains of the list.") | |||
| 477 | error ("Changes to be undone are outside visible portion of buffer"); | 477 | error ("Changes to be undone are outside visible portion of buffer"); |
| 478 | SET_PT (pos); | 478 | SET_PT (pos); |
| 479 | 479 | ||
| 480 | /* Insert before markers so that if the mark is | 480 | /* Now that we record marker adjustments |
| 481 | currently on the boundary of this deletion, it | 481 | (caused by deletion) for undo, |
| 482 | ends up on the other side of the now-undeleted | 482 | we should always insert after markers, |
| 483 | text from point. Since undo doesn't even keep | 483 | so that undoing the marker adjustments |
| 484 | track of the mark, this isn't really necessary, | 484 | put the markers back in the right place. */ |
| 485 | but it may lead to better behavior in certain | 485 | Finsert (1, &membuf); |
| 486 | situations. */ | ||
| 487 | Finsert_before_markers (1, &membuf); | ||
| 488 | SET_PT (pos); | 486 | SET_PT (pos); |
| 489 | } | 487 | } |
| 490 | } | 488 | } |