changeset 2884:e52ea063421a

* 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.
author Jim Blandy <jimb@redhat.com>
date Wed, 19 May 1993 03:27:53 +0000
parents b8a3b11892dc
children cb1709f302e9
files src/xdisp.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)