emacs-diffs
[Top][All Lists]
Advanced

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

master 8cb1518: Fix vertical cursor motion when 'visual-line-mode' is in


From: Eli Zaretskii
Subject: master 8cb1518: Fix vertical cursor motion when 'visual-line-mode' is in effect
Date: Thu, 3 Sep 2020 09:01:11 -0400 (EDT)

branch: master
commit 8cb15183aa8faba4af52d7b87e5ee4dcd3b1104f
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix vertical cursor motion when 'visual-line-mode' is in effect
    
    * 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.
---
 src/xdisp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xdisp.c b/src/xdisp.c
index dd73758..406b2d7 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -9532,7 +9532,7 @@ move_it_in_display_line_to (struct it *it,
                         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.  */



reply via email to

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