diff --git a/src/xdisp.c b/src/xdisp.c index 08c6927052..fdf10894bf 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -21596,13 +21596,17 @@ 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_COLOR_TO_PIXEL (face->background, f) == FRAME_BACKGROUND_PIXEL (f) #ifdef HAVE_WINDOW_SYSTEM && !face->stipple #endif && !it->glyph_row->reversed_p - && !Vdisplay_fill_column_indicator) + && !Vdisplay_fill_column_indicator + && (NILP (face->lface[LFACE_EXTEND_INDEX]) + ||(face->box == FACE_NO_BOX + && face->underline == FACE_NO_UNDERLINE + && face->overline_p == false + && face->strike_through_p == false))) return; /* Set the glyph row flag indicating that the face of the last glyph