[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 1a6c7c1: Fix vertical cursor motion among many images
From: |
Eli Zaretskii |
Subject: |
master 1a6c7c1: Fix vertical cursor motion among many images |
Date: |
Sat, 13 Feb 2021 07:58:17 -0500 (EST) |
branch: master
commit 1a6c7c10951ce6dadfdab36ad6ff6f679526828f
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Fix vertical cursor motion among many images
* src/xdisp.c (move_it_in_display_line_to): Consider it
MOVE_POS_MATCH_OR_ZV if we are just after an image, stretch, or
display string, and the position matches exactly. This is needed
when one image follows another at TO_CHARPOS. (Bug#46464)
---
src/xdisp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/xdisp.c b/src/xdisp.c
index fb8eaf4..125d3ed 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -9227,10 +9227,10 @@ move_it_in_display_line_to (struct it *it,
|| prev_method == GET_FROM_STRING)
/* Passed TO_CHARPOS from left to right. */
&& ((prev_pos < to_charpos
- && IT_CHARPOS (*it) > to_charpos)
+ && IT_CHARPOS (*it) >= to_charpos)
/* Passed TO_CHARPOS from right to left. */
|| (prev_pos > to_charpos
- && IT_CHARPOS (*it) < to_charpos)))))
+ && IT_CHARPOS (*it) <= to_charpos)))))
{
if (it->line_wrap != WORD_WRAP || wrap_it.sp < 0)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 1a6c7c1: Fix vertical cursor motion among many images,
Eli Zaretskii <=