1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-21 03:52:16 -08:00

Fix vertical cursor motion across overlay strings

* src/indent.c (Fvertical_motion): Fix vertical cursor motion when
a screen line begins with an overlay string.  (Bug#80223)
This commit is contained in:
Eli Zaretskii 2026-01-19 16:20:39 +02:00
parent e81cee7468
commit cb7a3f4e89

View file

@ -2506,7 +2506,10 @@ buffer, whether or not it is currently displayed in some window. */)
an addition to the hscroll amount. */
if (!NILP (lcols))
{
if (it.method == GET_FROM_STRING && !NILP (it.from_overlay))
/* Start at beginning of line if inside an overlay string, to
avoid becoming stuck at the beginning of the overlay string. */
if (it.continuation_lines_width <= 0 /* not in continuation line */
&& it.method == GET_FROM_STRING && !NILP (it.from_overlay))
reseat_at_previous_visible_line_start(&it);
move_it_in_display_line (&it, ZV, first_x + to_x, MOVE_TO_X);