changeset 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 f8ba1a1de203
children 0de8f6270b30
files src/buffer.c
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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.  */