Fix point positioning on mouse clicks with non-zero line-height
* src/xdisp.c (move_it_to): After passing a newline, reset it->override_ascent, like 'display_line' does (in 'append_space_for_newline'). (Bug#51111)
This commit is contained in:
parent
4c7e74c386
commit
ae61d7a57d
1 changed files with 2 additions and 0 deletions
|
@ -10073,6 +10073,8 @@ move_it_to (struct it *it, ptrdiff_t to_charpos, int to_x, int to_y, int to_vpos
|
|||
|
||||
case MOVE_NEWLINE_OR_CR:
|
||||
max_current_x = max (it->current_x, max_current_x);
|
||||
if (!IT_OVERFLOW_NEWLINE_INTO_FRINGE (it))
|
||||
it->override_ascent = -1;
|
||||
set_iterator_to_next (it, true);
|
||||
it->continuation_lines_width = 0;
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue