From a981517b72e8d5e07a8ea6cf31b2fd6dcda4ec1f Mon Sep 17 00:00:00 2001 From: Andrea Alberti Date: Wed, 13 May 2026 17:45:54 +0200 Subject: [PATCH] Fill margins with 'margin' face on truncated screen lines * src/xdisp.c (display_line): Remove the unnecessary condition that row->used of the margin areas is zero, for when we call 'extend_face_to_end_of_line'. (Bug#80693) --- src/xdisp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index b485d9ccf40..ca8fa5dffee 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -26657,10 +26657,8 @@ display_line (struct it *it, int cursor_vpos) != DEFAULT_FACE_ID || FACE_FROM_ID (it->f, margin_face_id)->background != FRAME_BACKGROUND_PIXEL (it->f)) - && ((WINDOW_LEFT_MARGIN_WIDTH (it->w) > 0 - && it->glyph_row->used[LEFT_MARGIN_AREA] == 0) - || (WINDOW_RIGHT_MARGIN_WIDTH (it->w) > 0 - && it->glyph_row->used[RIGHT_MARGIN_AREA] == 0))) + && (WINDOW_LEFT_MARGIN_WIDTH (it->w) > 0 + || WINDOW_RIGHT_MARGIN_WIDTH (it->w) > 0)) extend_face_to_end_of_line (it); }