emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 82860cb7f7: ; (move_it_vertically_backward): Yet another fix of b


From: Eli Zaretskii
Subject: master 82860cb7f7: ; (move_it_vertically_backward): Yet another fix of bug#58210.
Date: Sat, 1 Oct 2022 08:44:59 -0400 (EDT)

branch: master
commit 82860cb7f7a92a75c08637a5aa5f1fcb2b6f2cc5
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; (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 95e97a0bb8..bee17bd6d7 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]