# HG changeset patch # User Karl Heuer # Date 770613971 0 # Node ID 7821be0db0928521cc4d6d068cc1e1d0b19171c8 # Parent f23eaf6babac2bc627f4d0fd2a142a4fc57a82fa (display_text_line): Make sure pointer is in range. diff -r f23eaf6babac -r 7821be0db092 src/xdisp.c --- a/src/xdisp.c Fri Jun 03 00:47:15 1994 +0000 +++ b/src/xdisp.c Fri Jun 03 03:26:11 1994 +0000 @@ -2196,8 +2196,12 @@ /* Draw the face of the newline character as extending all the way to the end of the frame line. */ if (current_face) - while (p1 < endp) - *p1++ = FAST_MAKE_GLYPH (' ', current_face); + { + if (p1 < leftmargin) + p1 = leftmargin; + while (p1 < endp) + *p1++ = FAST_MAKE_GLYPH (' ', current_face); + } #endif break; } @@ -2229,8 +2233,12 @@ /* Draw the face of the newline character as extending all the way to the end of the frame line. */ if (current_face) - while (p1 < endp) - *p1++ = FAST_MAKE_GLYPH (' ', current_face); + { + if (p1 < leftmargin) + p1 = leftmargin; + while (p1 < endp) + *p1++ = FAST_MAKE_GLYPH (' ', current_face); + } #endif break; }