projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5b0019
)
Fix 'make_lispy_position' when there's an image at EOB
author
Eli Zaretskii
<eliz@gnu.org>
Wed, 26 Jan 2022 14:44:14 +0000
(16:44 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Wed, 26 Jan 2022 14:44:14 +0000
(16:44 +0200)
* src/xdisp.c (move_it_to): Don't compare IT_CHARPOS with an
invalid TO_CHARPOS. (Bug#53546)
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 73edc0d7aaf3ea89bfc9f4375fa076db9fbb9419..aa70b933f14fd823f0b4a70d2c231e29960a585a 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-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)))
{