1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-05 23:21:22 -08:00

Fix mouse-set-point when line numbers are displayed

* src/xdisp.c (move_it_to): Initialize the line_number_produced_p
flag before iterating on a new line.  (Bug#30818)
This commit is contained in:
Eli Zaretskii 2018-03-15 15:13:50 +02:00
parent c8c486bd38
commit 5c585b8b99

View file

@ -9598,6 +9598,7 @@ move_it_to (struct it *it, ptrdiff_t to_charpos, int to_x, int to_y, int to_vpos
it->current_x = line_start_x;
line_start_x = 0;
it->hpos = 0;
it->line_number_produced_p = false;
it->current_y += it->max_ascent + it->max_descent;
++it->vpos;
last_height = it->max_ascent + it->max_descent;