1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-31 01:32:00 -07:00

Fix display images in the display margins

* src/xdisp.c (handle_single_display_spec): Set the iterator face
to use 'margin' when displaying in the margins.  (Bug#80693)
This commit is contained in:
Eli Zaretskii 2026-05-09 08:58:59 +03:00
parent 56f27dd9f0
commit 6ba05106f4

View file

@ -6534,10 +6534,19 @@ handle_single_display_spec (struct it *it, Lisp_Object spec, Lisp_Object object,
if (NILP (location))
it->area = TEXT_AREA;
else if (EQ (location, Qleft_margin))
it->area = LEFT_MARGIN_AREA;
else
it->area = RIGHT_MARGIN_AREA;
{
if (EQ (location, Qleft_margin))
it->area = LEFT_MARGIN_AREA;
else
it->area = RIGHT_MARGIN_AREA;
/* Use the 'margin' face for displaying text and images
in the margins. */
it->face_id =
NILP (Vface_remapping_alist)
? MARGIN_FACE_ID
: lookup_basic_face (it->w, it->f, MARGIN_FACE_ID);
}
if (STRINGP (value))
{