aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-10-01 15:44:23 +0300
committerEli Zaretskii2022-10-01 15:44:23 +0300
commit82860cb7f7a92a75c08637a5aa5f1fcb2b6f2cc5 (patch)
tree758fc83e99cf2fee00ce6c47026403df1edb6641 /src
parenta2a91f0205b82030d502b3b1c48c78ccfe35fda6 (diff)
downloademacs-82860cb7f7a92a75c08637a5aa5f1fcb2b6f2cc5.tar.gz
emacs-82860cb7f7a92a75c08637a5aa5f1fcb2b6f2cc5.zip
; (move_it_vertically_backward): Yet another fix of bug#58210.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 95e97a0bb8e..bee17bd6d7f 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -10775,15 +10775,11 @@ move_it_vertically_backward (struct it *it, int dy)
10775 10775
10776 if (dy == 0) 10776 if (dy == 0)
10777 { 10777 {
10778 /* Adjust nlines for increasing it at the beginning. */
10779 if (it2.bidi_p
10780 && !(it2.line_wrap == WORD_WRAP && it2.continuation_lines_width))
10781 nlines--;
10782 /* DY == 0 means move to the start of the screen line. The 10778 /* DY == 0 means move to the start of the screen line. The
10783 value of nlines is > 0 if continuation lines were involved, 10779 value of nlines is > 1 if continuation lines were involved,
10784 or if the original IT position was at start of a line. */ 10780 or if the original IT position was at start of a line. */
10785 RESTORE_IT (it, it, it2data); 10781 RESTORE_IT (it, it, it2data);
10786 if (nlines > 0) 10782 if (nlines > 1)
10787 move_it_by_lines (it, nlines); 10783 move_it_by_lines (it, nlines);
10788 /* The above code moves us to some position NLINES down, 10784 /* The above code moves us to some position NLINES down,
10789 usually to its first glyph (leftmost in an L2R line), but 10785 usually to its first glyph (leftmost in an L2R line), but