# HG changeset patch # User Stefan Monnier # Date 1259098403 0 # Node ID 35b575add8614acc798a7bcc314ee600bee23b4f # Parent 6c0524d168f6cbc7c9a23dd7c8ed5037034466ea (adjust_markers_for_delete): Move it in the right direction! (bug#4803) diff -r 6c0524d168f6 -r 35b575add861 src/ChangeLog --- a/src/ChangeLog Tue Nov 24 20:00:41 2009 +0000 +++ b/src/ChangeLog Tue Nov 24 21:33:23 2009 +0000 @@ -1,3 +1,8 @@ +2009-11-24 Stefan Monnier + + * insdel.c (adjust_markers_for_delete): Move it in the + right direction! (bug#4803) + 2009-11-24 YAMAMOTO Mitsuharu * font.c (font_open_entity): Don't use ASET if font_object is Qnil. diff -r 6c0524d168f6 -r 35b575add861 src/insdel.c --- a/src/insdel.c Tue Nov 24 20:00:41 2009 +0000 +++ b/src/insdel.c Tue Nov 24 21:33:23 2009 +0000 @@ -370,14 +370,14 @@ re-inserted text after undoing a deletion, and must be adjusted to move them to the correct place. */ XSETMISC (marker, m); - record_marker_adjustment (marker, from - charpos); + record_marker_adjustment (marker, from - charpos); } else if (charpos < to) { /* Before-insertion markers will automatically move forward upon re-inserting the deleted text, so we have to arrange for them to move backward to the correct position. */ XSETMISC (marker, m); - record_marker_adjustment (marker, charpos - to); + record_marker_adjustment (marker, to - charpos); } m->charpos = from; m->bytepos = from_byte;