diff options
| author | Eli Zaretskii | 2018-03-15 15:13:50 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-06-02 12:19:42 +0300 |
| commit | a6cf7be3f05418200453113c9bc99e057270aad3 (patch) | |
| tree | a89aa756ef67593edb95e8e5ff745aab0453e8c7 /src | |
| parent | ae78b142901c954d16a35eaf97b312438f751bdb (diff) | |
| download | emacs-a6cf7be3f05418200453113c9bc99e057270aad3.tar.gz emacs-a6cf7be3f05418200453113c9bc99e057270aad3.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)
(cherry picked from commit 5c585b8b994aad4e6844f8eed80bdfbb396e91bf)
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 f637dec64d0..4e3955ea61e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -9600,6 +9600,7 @@ move_it_to (struct it *it, ptrdiff_t to_charpos, int to_x, int to_y, int to_vpos | |||
| 9600 | it->current_x = line_start_x; | 9600 | it->current_x = line_start_x; |
| 9601 | line_start_x = 0; | 9601 | line_start_x = 0; |
| 9602 | it->hpos = 0; | 9602 | it->hpos = 0; |
| 9603 | it->line_number_produced_p = false; | ||
| 9603 | it->current_y += it->max_ascent + it->max_descent; | 9604 | it->current_y += it->max_ascent + it->max_descent; |
| 9604 | ++it->vpos; | 9605 | ++it->vpos; |
| 9605 | last_height = it->max_ascent + it->max_descent; | 9606 | last_height = it->max_ascent + it->max_descent; |