Fix 'make_lispy_position' when there's an image at EOB
* src/xdisp.c (move_it_to): Don't compare IT_CHARPOS with an invalid TO_CHARPOS. (Bug#53546)
This commit is contained in:
parent
c5b0019e10
commit
6075ea0b79
1 changed files with 2 additions and 1 deletions
|
@ -10016,7 +10016,8 @@ move_it_to (struct it *it, ptrdiff_t to_charpos, int to_x, int to_y, int to_vpos
|
|||
could have both positions after TO_CHARPOS or
|
||||
both positions before it, due to bidi
|
||||
reordering.) */
|
||||
if (IT_CHARPOS (*it) != to_charpos
|
||||
if (to_charpos > 0
|
||||
&& IT_CHARPOS (*it) != to_charpos
|
||||
&& ((IT_CHARPOS (it_backup) > to_charpos)
|
||||
== (IT_CHARPOS (*it) > to_charpos)))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue