1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 12:40:49 -08:00

(Fmove_overlay): Set overlay's next pointer

unconditionally.
This commit is contained in:
Gerd Moellmann 2003-08-19 12:39:00 +00:00
parent 26566a7b8c
commit 2f297815d7
2 changed files with 9 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2003-08-19 Gerd Moellmann <gerd@gnu.org>
* buffer.c (Fmove_overlay): Set overlay's next pointer
unconditionally.
2003-08-16 Richard M. Stallman <rms@gnu.org>
* editfns.c (Fencode_time): Doc fix.

View file

@ -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. */