diff options
-rw-r--r-- | src/xdisp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 55e74a36037..95e97a0bb8e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -10776,7 +10776,9 @@ move_it_vertically_backward (struct it *it, int dy) 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. */ |