diff options
| author | Gerd Moellmann | 2003-08-19 12:39:00 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2003-08-19 12:39:00 +0000 |
| commit | 2f297815d7c375ec8f810b54cf2a3571aaeda616 (patch) | |
| tree | 60fa356315e097beb5afc772258042bde0e5435d /src/buffer.c | |
| parent | 26566a7b8cc7d48ce2731d2176bcf8283282bf0e (diff) | |
| download | emacs-2f297815d7c375ec8f810b54cf2a3571aaeda616.tar.gz emacs-2f297815d7c375ec8f810b54cf2a3571aaeda616.zip | |
(Fmove_overlay): Set overlay's next pointer
unconditionally.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 10 |
1 files changed, 4 insertions, 6 deletions
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. */) | |||
| 3741 | end = OVERLAY_END (overlay); | 3741 | end = OVERLAY_END (overlay); |
| 3742 | if (OVERLAY_POSITION (end) < b->overlay_center) | 3742 | if (OVERLAY_POSITION (end) < b->overlay_center) |
| 3743 | { | 3743 | { |
| 3744 | if (b->overlays_after) | 3744 | XOVERLAY (overlay)->next = b->overlays_after; |
| 3745 | XOVERLAY (overlay)->next = b->overlays_after; | 3745 | b->overlays_after = XOVERLAY (overlay); |
| 3746 | b->overlays_after = XOVERLAY (overlay); | ||
| 3747 | } | 3746 | } |
| 3748 | else | 3747 | else |
| 3749 | { | 3748 | { |
| 3750 | if (b->overlays_before) | 3749 | XOVERLAY (overlay)->next = b->overlays_before; |
| 3751 | XOVERLAY (overlay)->next = b->overlays_before; | 3750 | b->overlays_before = XOVERLAY (overlay); |
| 3752 | b->overlays_before = XOVERLAY (overlay); | ||
| 3753 | } | 3751 | } |
| 3754 | 3752 | ||
| 3755 | /* This puts it in the right list, and in the right order. */ | 3753 | /* This puts it in the right list, and in the right order. */ |