* 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.
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. */