aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-05-19 03:27:53 +0000
committerJim Blandy1993-05-19 03:27:53 +0000
commit3c5c35c53da03fee0fb4a0c97782e7e81000b238 (patch)
tree2d65a5f6c9c7283d308365891dd704f9fc330b62 /src
parent68a973351fcc8327e72ed65266983e946d0780d5 (diff)
downloademacs-3c5c35c53da03fee0fb4a0c97782e7e81000b238.tar.gz
emacs-3c5c35c53da03fee0fb4a0c97782e7e81000b238.zip
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c14
1 files changed, 14 insertions, 0 deletions
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)
1836 copy_part_of_rope (p1prev, p1prev, invis_vector_contents, 1836 copy_part_of_rope (p1prev, p1prev, invis_vector_contents,
1837 (p1 - p1prev), current_face); 1837 (p1 - p1prev), current_face);
1838 } 1838 }
1839#if 1
1840 /* Draw the face of the newline character as extending all the
1841 way to the end of the frame line. */
1842 if (current_face)
1843 while (p1 < endp)
1844 *p1++ = MAKE_GLYPH (' ', current_face);
1845#endif
1839 break; 1846 break;
1840 } 1847 }
1841 else if (c == '\t') 1848 else if (c == '\t')
@@ -1862,6 +1869,13 @@ display_text_line (w, start, vpos, hpos, taboffset)
1862 copy_part_of_rope (p1prev, p1prev, invis_vector_contents, 1869 copy_part_of_rope (p1prev, p1prev, invis_vector_contents,
1863 (p1 - p1prev), current_face); 1870 (p1 - p1prev), current_face);
1864 } 1871 }
1872#if 1
1873 /* Draw the face of the newline character as extending all the
1874 way to the end of the frame line. */
1875 if (current_face)
1876 while (p1 < endp)
1877 *p1++ = MAKE_GLYPH (' ', current_face);
1878#endif
1865 break; 1879 break;
1866 } 1880 }
1867 else if (dp != 0 && XTYPE (DISP_CHAR_VECTOR (dp, c)) == Lisp_Vector) 1881 else if (dp != 0 && XTYPE (DISP_CHAR_VECTOR (dp, c)) == Lisp_Vector)