From: Gerd Moellmann Date: Tue, 19 Aug 2003 12:39:00 +0000 (+0000) Subject: (Fmove_overlay): Set overlay's next pointer X-Git-Tag: ttn-vms-21-2-B4~9054 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2f297815d7c375ec8f810b54cf2a3571aaeda616;p=emacs.git (Fmove_overlay): Set overlay's next pointer unconditionally. --- diff --git a/src/ChangeLog b/src/ChangeLog index a2c45a94061..9ac972507e2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-08-19 Gerd Moellmann + + * buffer.c (Fmove_overlay): Set overlay's next pointer + unconditionally. + 2003-08-16 Richard M. Stallman * editfns.c (Fencode_time): Doc fix. diff --git a/src/buffer.c b/src/buffer.c index 40ee3f071de..b54291a89e3 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -3741,15 +3741,13 @@ buffer. */) 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. */