diff --git a/src/xdisp.c b/src/xdisp.c index 2dfc4cbfeb..f7d0df714f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -21601,8 +21601,8 @@ extend_face_to_end_of_line (struct it *it) one extra blank where we could display the cursor. */ if ((it->current_x >= it->last_visible_x + (!FRAME_WINDOW_P (f) - && it->glyph_row->reversed_p - && !it->glyph_row->continued_p)) + && it->glyph_row->reversed_p + && !it->glyph_row->continued_p)) /* If the window has display margins, we will need to extend their face even if the text area is filled. */ && !(WINDOW_LEFT_MARGIN_WIDTH (it->w) > 0 @@ -21623,13 +21623,16 @@ 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 + && 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