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)
This commit is contained in:
parent
bc63651588
commit
803ac857ee
1 changed files with 4 additions and 1 deletions
|
@ -2197,7 +2197,10 @@ whether or not it is currently displayed in some window. */)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
it_overshoot_count =
|
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)
|
if (start_x_given)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue