summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2020-09-03 15:59:46 +0300
committerEli Zaretskii <eliz@gnu.org>2020-09-03 15:59:46 +0300
commit8cb15183aa8faba4af52d7b87e5ee4dcd3b1104f (patch)
tree308ad0a953658685ee4051947fa04a4813ad03ea
parent5142149758333cfddc25c8c696e0e6f322e37d62 (diff)
downloademacs-8cb15183aa8faba4af52d7b87e5ee4dcd3b1104f.tar.gz
emacs-8cb15183aa8faba4af52d7b87e5ee4dcd3b1104f.tar.bz2
emacs-8cb15183aa8faba4af52d7b87e5ee4dcd3b1104f.zip
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.
-rw-r--r--src/xdisp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index dd737580438..406b2d70d58 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. */