Fix vertical cursor motion when 'visual-line-mode' is in effect

* src/xdisp.c (move_it_in_display_line_to): Fix a logic error made
as part of introducing the 'word-wrap-by-category' feature; that
error brought back bug#8155.
This commit is contained in:
Eli Zaretskii 2020-09-03 15:59:46 +03:00
parent 5142149758
commit 8cb15183aa

View file

@ -9532,7 +9532,7 @@ move_it_in_display_line_to (struct it *it,
we can't wrap here. Therefore, wrap_it
(previously found wrap-point) _is_ relevant
in that case. */
&& !(moved_forward && char_can_wrap_before (it)))
&& (!moved_forward || char_can_wrap_before (it)))
{
/* If we've found TO_X, go back there, as we now
know the last word fits on this screen line. */