diff options
author | Eli Zaretskii <eliz@gnu.org> | 2022-10-01 09:24:04 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-10-01 09:24:04 +0300 |
commit | 372cc9e88c9dad94a29082269d2424723b28eaee (patch) | |
tree | 199b716159676c4bc64fe9d0278453d4e1882799 | |
parent | 2ceb09315c0d590d6f50ff8649066f260e35e7fb (diff) | |
download | emacs-372cc9e88c9dad94a29082269d2424723b28eaee.tar.gz emacs-372cc9e88c9dad94a29082269d2424723b28eaee.tar.bz2 emacs-372cc9e88c9dad94a29082269d2424723b28eaee.zip |
Fix 'C-a' and 'C-e' under 'visual-line-mode'
* src/xdisp.c (move_it_vertically_backward): Fix last change.
(Bug#58210)
-rw-r--r-- | src/xdisp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 55e74a36037..95e97a0bb8e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -10776,7 +10776,9 @@ move_it_vertically_backward (struct it *it, int dy) if (dy == 0) { /* Adjust nlines for increasing it at the beginning. */ - nlines -= !!it->bidi_p; + 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, or if the original IT position was at start of a line. */ |