aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index c955ebc0cf8..a61ead4bef2 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3986,7 +3986,8 @@ load_overlay_strings (it, charpos)
3986 int charpos; 3986 int charpos;
3987{ 3987{
3988 extern Lisp_Object Qafter_string, Qbefore_string, Qwindow, Qpriority; 3988 extern Lisp_Object Qafter_string, Qbefore_string, Qwindow, Qpriority;
3989 Lisp_Object ov, overlay, window, str, invisible; 3989 Lisp_Object overlay, window, str, invisible;
3990 struct Lisp_Overlay *ov;
3990 int start, end; 3991 int start, end;
3991 int size = 20; 3992 int size = 20;
3992 int n = 0, i, j, invis_p; 3993 int n = 0, i, j, invis_p;
@@ -4026,9 +4027,9 @@ load_overlay_strings (it, charpos)
4026 while (0) 4027 while (0)
4027 4028
4028 /* Process overlay before the overlay center. */ 4029 /* Process overlay before the overlay center. */
4029 for (ov = current_buffer->overlays_before; CONSP (ov); ov = XCDR (ov)) 4030 for (ov = current_buffer->overlays_before; ov; ov = ov->next)
4030 { 4031 {
4031 overlay = XCAR (ov); 4032 XSETMISC (overlay, ov);
4032 xassert (OVERLAYP (overlay)); 4033 xassert (OVERLAYP (overlay));
4033 start = OVERLAY_POSITION (OVERLAY_START (overlay)); 4034 start = OVERLAY_POSITION (OVERLAY_START (overlay));
4034 end = OVERLAY_POSITION (OVERLAY_END (overlay)); 4035 end = OVERLAY_POSITION (OVERLAY_END (overlay));
@@ -4066,9 +4067,9 @@ load_overlay_strings (it, charpos)
4066 } 4067 }
4067 4068
4068 /* Process overlays after the overlay center. */ 4069 /* Process overlays after the overlay center. */
4069 for (ov = current_buffer->overlays_after; CONSP (ov); ov = XCDR (ov)) 4070 for (ov = current_buffer->overlays_after; ov; ov = ov->next)
4070 { 4071 {
4071 overlay = XCAR (ov); 4072 XSETMISC (overlay, ov);
4072 xassert (OVERLAYP (overlay)); 4073 xassert (OVERLAYP (overlay));
4073 start = OVERLAY_POSITION (OVERLAY_START (overlay)); 4074 start = OVERLAY_POSITION (OVERLAY_START (overlay));
4074 end = OVERLAY_POSITION (OVERLAY_END (overlay)); 4075 end = OVERLAY_POSITION (OVERLAY_END (overlay));