Fix vertical cursor motion across too wide images
* src/indent.c (Fvertical_motion): If lines are truncated and we end up beyond the right margin of the window, don't assume we are in the next screen line, unless VPOS actually says so. (Bug#28071)
This commit is contained in:
parent
8c8be4f8f4
commit
28a5b8adcc
1 changed files with 2 additions and 2 deletions
|
@ -2229,10 +2229,10 @@ whether or not it is currently displayed in some window. */)
|
|||
screen lines we need to backtrack. */
|
||||
it_overshoot_count = it.vpos;
|
||||
}
|
||||
/* We will overshoot if lines are truncated and point lies
|
||||
/* We might overshoot if lines are truncated and point lies
|
||||
beyond the right margin of the window. */
|
||||
if (it.line_wrap == TRUNCATE && it.current_x >= it.last_visible_x
|
||||
&& it_overshoot_count == 0)
|
||||
&& it_overshoot_count == 0 && it.vpos > 0)
|
||||
it_overshoot_count = 1;
|
||||
if (it_overshoot_count > 0)
|
||||
move_it_by_lines (&it, -it_overshoot_count);
|
||||
|
|
Loading…
Add table
Reference in a new issue