Commit 3c5c35c5 authored by Jim Blandy's avatar Jim Blandy
Browse files

* 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.
parent 68a97335
...@@ -1836,6 +1836,13 @@ display_text_line (w, start, vpos, hpos, taboffset) ...@@ -1836,6 +1836,13 @@ display_text_line (w, start, vpos, hpos, taboffset)
copy_part_of_rope (p1prev, p1prev, invis_vector_contents, copy_part_of_rope (p1prev, p1prev, invis_vector_contents,
(p1 - p1prev), current_face); (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; break;
} }
else if (c == '\t') else if (c == '\t')
...@@ -1862,6 +1869,13 @@ display_text_line (w, start, vpos, hpos, taboffset) ...@@ -1862,6 +1869,13 @@ display_text_line (w, start, vpos, hpos, taboffset)
copy_part_of_rope (p1prev, p1prev, invis_vector_contents, copy_part_of_rope (p1prev, p1prev, invis_vector_contents,
(p1 - p1prev), current_face); (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; break;
} }
else if (dp != 0 && XTYPE (DISP_CHAR_VECTOR (dp, c)) == Lisp_Vector) else if (dp != 0 && XTYPE (DISP_CHAR_VECTOR (dp, c)) == Lisp_Vector)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment