aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2018-03-15 15:13:50 +0200
committerEli Zaretskii2018-03-15 15:13:50 +0200
commit5c585b8b994aad4e6844f8eed80bdfbb396e91bf (patch)
treef45e9d640c8af6791f1f96e7797a62c98610cffc
parentc8c486bd380ccaff330b4f5046109f639fe31167 (diff)
downloademacs-5c585b8b994aad4e6844f8eed80bdfbb396e91bf.tar.gz
emacs-5c585b8b994aad4e6844f8eed80bdfbb396e91bf.zip
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)
-rw-r--r--src/xdisp.c1
1 files changed, 1 insertions, 0 deletions
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
9598 it->current_x = line_start_x; 9598 it->current_x = line_start_x;
9599 line_start_x = 0; 9599 line_start_x = 0;
9600 it->hpos = 0; 9600 it->hpos = 0;
9601 it->line_number_produced_p = false;
9601 it->current_y += it->max_ascent + it->max_descent; 9602 it->current_y += it->max_ascent + it->max_descent;
9602 ++it->vpos; 9603 ++it->vpos;
9603 last_height = it->max_ascent + it->max_descent; 9604 last_height = it->max_ascent + it->max_descent;