Commit 7a100820 authored by Jimmy Aguilar Mena's avatar Jimmy Aguilar Mena

Fix issue calling face_at_pos.

*src/xdisp.c (extend_face_to_end_of_line): Add extra condition when
producing glyphs from a C string to not call face_at_pos.
parent 501846c8
Pipeline #3635 failed with stage
in 90 minutes and 1 second
......@@ -21578,7 +21578,8 @@ extend_face_to_end_of_line (struct it *it)
|| WINDOW_RIGHT_MARGIN_WIDTH (it->w) > 0))
return;
const int extend_face_id = (it->face_id == DEFAULT_FACE_ID)
const int extend_face_id = (it->face_id == DEFAULT_FACE_ID
|| it->s != NULL)
? DEFAULT_FACE_ID
: face_at_pos (it, LFACE_EXTEND_INDEX);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment