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:
parent
56f27dd9f0
commit
6ba05106f4
1 changed files with 12 additions and 3 deletions
15
src/xdisp.c
15
src/xdisp.c
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue