emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 803ac857ee: Fix cursor motion under truncate-lines with Flymake


From: Eli Zaretskii
Subject: emacs-28 803ac857ee: Fix cursor motion under truncate-lines with Flymake fringe indicator
Date: Fri, 15 Apr 2022 05:05:56 -0400 (EDT)

branch: emacs-28
commit 803ac857eef1ab25488d0bf0c9460dd2d89bd5d1
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix cursor motion under truncate-lines with Flymake fringe indicator
    
    * src/indent.c (Fvertical_motion): Don't consider fringe bitmaps
    as "images" for the purpose of vertical-motion logic dealing with
    overshooting buffer positions.  (Bug#54946)
---
 src/indent.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/indent.c b/src/indent.c
index 9f1a448a73..f5a2a078b9 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2197,7 +2197,10 @@ whether or not it is currently displayed in some window. 
 */)
        }
       else
        it_overshoot_count =
-         !(it.method == GET_FROM_IMAGE || it.method == GET_FROM_STRETCH);
+         /* If image_id is negative, it's a fringe bitmap, which by
+            definition doesn't affect display in the text area.  */
+         !((it.method == GET_FROM_IMAGE && it.image_id >= 0)
+           || it.method == GET_FROM_STRETCH);
 
       if (start_x_given)
        {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]