From: Eli Zaretskii Date: Thu, 15 Mar 2018 13:13:50 +0000 (+0200) Subject: Fix mouse-set-point when line numbers are displayed X-Git-Tag: emacs-27.0.90~5492 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5c585b8b994aad4e6844f8eed80bdfbb396e91bf;p=emacs.git 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) --- diff --git a/src/xdisp.c b/src/xdisp.c index c0fdeca4847..b99990d1d45 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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;