Commit 1265e947 authored by Eli Zaretskii's avatar Eli Zaretskii

Fix cursor display at EOL before extended face

* src/xdisp.c (extend_face_to_end_of_line): Make sure the
character position of the stretch glyph inserted to extend the
face is zero, as various other parts of the display code rely
on that.  (Bug#38330)
parent c26556bd
Pipeline #4143 failed with stage
in 60 minutes and 53 seconds
......@@ -21726,9 +21726,12 @@ extend_face_to_end_of_line (struct it *it)
const int stretch_width = it->last_visible_x - it->current_x;
if (stretch_width > 0)
append_stretch_glyph (it, Qnil, stretch_width,
it->ascent + it->descent,
stretch_ascent);
{
memset (&it->position, 0, sizeof it->position);
append_stretch_glyph (it, Qnil, stretch_width,
it->ascent + it->descent,
stretch_ascent);
}
}
it->char_to_display = saved_char;
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