From 0abdb01be6c1adee1f179b1d5f7a9fb4ee670109 Mon Sep 17 00:00:00 2001 From: Jimmy Aguilar Mena Date: Sun, 22 Dec 2019 23:46:39 +0100 Subject: [PATCH] Fix extension of underline, overline, and strike-through attributes * 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 2dfc4cbfeb4..3080f8920a3 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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 -- 2.39.2