]> git.eshelyaron.com Git - emacs.git/commitdiff
(display_text_line): Make sure pointer is in range.
authorKarl Heuer <kwzh@gnu.org>
Fri, 3 Jun 1994 03:26:11 +0000 (03:26 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 3 Jun 1994 03:26:11 +0000 (03:26 +0000)
src/xdisp.c

index e3e28d764e62bf78784461d049e2cc2970048f62..fa6e0c1493c32b1847330bc153e97f20a23c9b51 100644 (file)
@@ -2196,8 +2196,12 @@ display_text_line (w, start, vpos, hpos, taboffset)
          /* 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 @@ display_text_line (w, start, vpos, hpos, taboffset)
          /* 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;
        }