# HG changeset patch # User Gerd Moellmann # Date 1061296716 0 # Node ID 79185e10e92fd979e209cb47872c8de9de41d942 # Parent f8ba1a1de203fb45a7fd9b9d01babff87c63b613 (Fmove_overlay): Set overlay's next pointer unconditionally. diff -r f8ba1a1de203 -r 79185e10e92f src/buffer.c --- a/src/buffer.c Tue Aug 19 10:28:00 2003 +0000 +++ b/src/buffer.c Tue Aug 19 12:38:36 2003 +0000 @@ -3741,15 +3741,13 @@ end = OVERLAY_END (overlay); if (OVERLAY_POSITION (end) < b->overlay_center) { - if (b->overlays_after) - XOVERLAY (overlay)->next = b->overlays_after; - b->overlays_after = XOVERLAY (overlay); + XOVERLAY (overlay)->next = b->overlays_after; + b->overlays_after = XOVERLAY (overlay); } else { - if (b->overlays_before) - XOVERLAY (overlay)->next = b->overlays_before; - b->overlays_before = XOVERLAY (overlay); + XOVERLAY (overlay)->next = b->overlays_before; + b->overlays_before = XOVERLAY (overlay); } /* This puts it in the right list, and in the right order. */