]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix mouse-set-point when line numbers are displayed
authorEli Zaretskii <eliz@gnu.org>
Thu, 15 Mar 2018 13:13:50 +0000 (15:13 +0200)
committerAndrew G Cohen <cohen@andy.bu.edu>
Tue, 11 Dec 2018 06:17:30 +0000 (14:17 +0800)
* src/xdisp.c (move_it_to): Initialize the line_number_produced_p
flag before iterating on a new line.  (Bug#30818)

src/xdisp.c

index c0fdeca484737a906c4e471c3664696b0154b441..b99990d1d454f2faf198ccec775cc4ef3578afce 100644 (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;