diff options
| author | Eli Zaretskii | 2022-10-01 09:24:04 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-10-01 09:24:04 +0300 |
| commit | 372cc9e88c9dad94a29082269d2424723b28eaee (patch) | |
| tree | 199b716159676c4bc64fe9d0278453d4e1882799 /src | |
| parent | 2ceb09315c0d590d6f50ff8649066f260e35e7fb (diff) | |
| download | emacs-372cc9e88c9dad94a29082269d2424723b28eaee.tar.gz 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)
Diffstat (limited to 'src')
| -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) | |||
| 10776 | if (dy == 0) | 10776 | if (dy == 0) |
| 10777 | { | 10777 | { |
| 10778 | /* Adjust nlines for increasing it at the beginning. */ | 10778 | /* Adjust nlines for increasing it at the beginning. */ |
| 10779 | nlines -= !!it->bidi_p; | 10779 | if (it2.bidi_p |
| 10780 | && !(it2.line_wrap == WORD_WRAP && it2.continuation_lines_width)) | ||
| 10781 | nlines--; | ||
| 10780 | /* DY == 0 means move to the start of the screen line. The | 10782 | /* DY == 0 means move to the start of the screen line. The |
| 10781 | value of nlines is > 0 if continuation lines were involved, | 10783 | value of nlines is > 0 if continuation lines were involved, |
| 10782 | or if the original IT position was at start of a line. */ | 10784 | or if the original IT position was at start of a line. */ |