# HG changeset patch # User Jim Blandy # Date 737782073 0 # Node ID e52ea063421a7906294794b677948aac045b1a79 # Parent b8a3b11892dccb5e8f7a85d18e77d691ef155b08 * 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. diff -r b8a3b11892dc -r e52ea063421a src/xdisp.c --- a/src/xdisp.c Wed May 19 03:07:10 1993 +0000 +++ b/src/xdisp.c Wed May 19 03:27:53 1993 +0000 @@ -1836,6 +1836,13 @@ 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 @@ 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)