From: Gerd Moellmann Date: Tue, 19 Aug 2003 12:39:00 +0000 (+0000) Subject: (Fmove_overlay): Set overlay's next pointer X-Git-Url: http://git.hcoop.net/bpt/emacs.git/commitdiff_plain/2f297815d7c375ec8f810b54cf2a3571aaeda616 (Fmove_overlay): Set overlay's next pointer unconditionally. --- diff --git a/src/ChangeLog b/src/ChangeLog index a2c45a9406..9ac972507e 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 40ee3f071d..b54291a89e 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. */