1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-30 17:22:17 -07:00

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)
This commit is contained in:
Andrea Alberti 2026-05-13 17:45:54 +02:00 committed by Eli Zaretskii
parent 8e37499035
commit a981517b72

View file

@ -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);
}