aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2020-09-03 15:59:46 +0300
committerEli Zaretskii2020-09-03 15:59:46 +0300
commit8cb15183aa8faba4af52d7b87e5ee4dcd3b1104f (patch)
tree308ad0a953658685ee4051947fa04a4813ad03ea /src
parent5142149758333cfddc25c8c696e0e6f322e37d62 (diff)
downloademacs-8cb15183aa8faba4af52d7b87e5ee4dcd3b1104f.tar.gz
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.
Diffstat (limited to 'src')
-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,
9532 we can't wrap here. Therefore, wrap_it 9532 we can't wrap here. Therefore, wrap_it
9533 (previously found wrap-point) _is_ relevant 9533 (previously found wrap-point) _is_ relevant
9534 in that case. */ 9534 in that case. */
9535 && !(moved_forward && char_can_wrap_before (it))) 9535 && (!moved_forward || char_can_wrap_before (it)))
9536 { 9536 {
9537 /* If we've found TO_X, go back there, as we now 9537 /* If we've found TO_X, go back there, as we now
9538 know the last word fits on this screen line. */ 9538 know the last word fits on this screen line. */