From 3c5c35c53da03fee0fb4a0c97782e7e81000b238 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Wed, 19 May 1993 03:27:53 +0000 Subject: [PATCH] * xdisp.c (display_text_line): If the newline (or C-m, in selective-display) has a non-default face, apply that face to the remainder of the line, so that the fill occupies the entire line. --- src/xdisp.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 562e10aafbd..f37f1d4e976 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1836,6 +1836,13 @@ display_text_line (w, start, vpos, hpos, taboffset) copy_part_of_rope (p1prev, p1prev, invis_vector_contents, (p1 - p1prev), current_face); } +#if 1 + /* 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++ = MAKE_GLYPH (' ', current_face); +#endif break; } else if (c == '\t') @@ -1862,6 +1869,13 @@ display_text_line (w, start, vpos, hpos, taboffset) copy_part_of_rope (p1prev, p1prev, invis_vector_contents, (p1 - p1prev), current_face); } +#if 1 + /* 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++ = MAKE_GLYPH (' ', current_face); +#endif break; } else if (dp != 0 && XTYPE (DISP_CHAR_VECTOR (dp, c)) == Lisp_Vector)