diff options
| author | Eli Zaretskii | 2018-03-15 15:13:50 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-03-15 15:13:50 +0200 |
| commit | 5c585b8b994aad4e6844f8eed80bdfbb396e91bf (patch) | |
| tree | f45e9d640c8af6791f1f96e7797a62c98610cffc /src | |
| parent | c8c486bd380ccaff330b4f5046109f639fe31167 (diff) | |
| download | emacs-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)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 1 |
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; |