* src/xdisp.c (move_it_vertically_backward): Fix last change.
(Bug#58210)
if (dy == 0)
{
/* Adjust nlines for increasing it at the beginning. */
- nlines -= !!it->bidi_p;
+ if (it2.bidi_p
+ && !(it2.line_wrap == WORD_WRAP && it2.continuation_lines_width))
+ nlines--;
/* DY == 0 means move to the start of the screen line. The
value of nlines is > 0 if continuation lines were involved,
or if the original IT position was at start of a line. */