From 82860cb7f7a92a75c08637a5aa5f1fcb2b6f2cc5 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 1 Oct 2022 15:44:23 +0300 Subject: [PATCH] ; (move_it_vertically_backward): Yet another fix of bug#58210. --- src/xdisp.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 95e97a0bb8e..bee17bd6d7f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -10775,15 +10775,11 @@ move_it_vertically_backward (struct it *it, int dy) if (dy == 0) { - /* Adjust nlines for increasing it at the beginning. */ - 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, + value of nlines is > 1 if continuation lines were involved, or if the original IT position was at start of a line. */ RESTORE_IT (it, it, it2data); - if (nlines > 0) + if (nlines > 1) move_it_by_lines (it, nlines); /* The above code moves us to some position NLINES down, usually to its first glyph (leftmost in an L2R line), but -- 2.39.2