]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix extension of underline, overline, and strike-through attributes
authorJimmy Aguilar Mena <spacibba@aol.com>
Sun, 22 Dec 2019 22:46:39 +0000 (23:46 +0100)
committerEli Zaretskii <eliz@gnu.org>
Mon, 23 Dec 2019 13:33:25 +0000 (15:33 +0200)
* src/xdisp.c (extend_face_to_end_of_line): Don't return early
if face attributes beyond background color and box are set,
since that means these attributes need to be extended past the
EOL.

src/xdisp.c

index 2dfc4cbfeb4d289da4cfcc5afbe07a7a18b31f3a..3080f8920a347e480a7e2170996d0ab12eab7bf1 100644 (file)
@@ -21624,6 +21624,9 @@ extend_face_to_end_of_line (struct it *it)
   if (FRAME_WINDOW_P (f)
       && MATRIX_ROW_DISPLAYS_TEXT_P (it->glyph_row)
       && face->box == FACE_NO_BOX
+      && face->underline == FACE_NO_UNDERLINE
+      && !face->overline_p
+      && !face->strike_through_p
       && FACE_COLOR_TO_PIXEL (face->background, f) == FRAME_BACKGROUND_PIXEL (f)
 #ifdef HAVE_WINDOW_SYSTEM
       && !face->stipple