aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-04-15 12:03:36 +0300
committerEli Zaretskii2022-04-15 12:03:36 +0300
commit803ac857eef1ab25488d0bf0c9460dd2d89bd5d1 (patch)
tree205938eeaf00e0ea0a2fa5bb69c3c179a50731da /src
parentbc636515884530f0cab6fa53b8cbce0aacbc5287 (diff)
downloademacs-803ac857eef1ab25488d0bf0c9460dd2d89bd5d1.tar.gz
emacs-803ac857eef1ab25488d0bf0c9460dd2d89bd5d1.zip
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)
Diffstat (limited to 'src')
-rw-r--r--src/indent.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c
index 9f1a448a73a..f5a2a078b98 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2197,7 +2197,10 @@ whether or not it is currently displayed in some window. */)
2197 } 2197 }
2198 else 2198 else
2199 it_overshoot_count = 2199 it_overshoot_count =
2200 !(it.method == GET_FROM_IMAGE || it.method == GET_FROM_STRETCH); 2200 /* If image_id is negative, it's a fringe bitmap, which by
2201 definition doesn't affect display in the text area. */
2202 !((it.method == GET_FROM_IMAGE && it.image_id >= 0)
2203 || it.method == GET_FROM_STRETCH);
2201 2204
2202 if (start_x_given) 2205 if (start_x_given)
2203 { 2206 {