comparison src/buffer.c @ 52253:79185e10e92f

(Fmove_overlay): Set overlay's next pointer unconditionally.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 19 Aug 2003 12:38:36 +0000
parents d116f572d76b
children 695cf19ef79e
comparison
equal deleted inserted replaced
52252:f8ba1a1de203 52253:79185e10e92f
3739 3739
3740 /* Put the overlay on the wrong list. */ 3740 /* Put the overlay on the wrong list. */
3741 end = OVERLAY_END (overlay); 3741 end = OVERLAY_END (overlay);
3742 if (OVERLAY_POSITION (end) < b->overlay_center) 3742 if (OVERLAY_POSITION (end) < b->overlay_center)
3743 { 3743 {
3744 if (b->overlays_after) 3744 XOVERLAY (overlay)->next = b->overlays_after;
3745 XOVERLAY (overlay)->next = b->overlays_after; 3745 b->overlays_after = XOVERLAY (overlay);
3746 b->overlays_after = XOVERLAY (overlay);
3747 } 3746 }
3748 else 3747 else
3749 { 3748 {
3750 if (b->overlays_before) 3749 XOVERLAY (overlay)->next = b->overlays_before;
3751 XOVERLAY (overlay)->next = b->overlays_before; 3750 b->overlays_before = XOVERLAY (overlay);
3752 b->overlays_before = XOVERLAY (overlay);
3753 } 3751 }
3754 3752
3755 /* This puts it in the right list, and in the right order. */ 3753 /* This puts it in the right list, and in the right order. */
3756 recenter_overlay_lists (b, b->overlay_center); 3754 recenter_overlay_lists (b, b->overlay_center);
3757 3755