aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2023-02-26 11:34:14 +0200
committerEli Zaretskii2023-02-26 11:34:14 +0200
commit5256392a7ec0639ba4ba684d608bb3aaf976c985 (patch)
treef26a64d68d895f1461ac35733810f166a61c1d70 /src
parent0db88d625a7ca1468af51ef0a04c22577500e059 (diff)
downloademacs-5256392a7ec0639ba4ba684d608bb3aaf976c985.tar.gz
emacs-5256392a7ec0639ba4ba684d608bb3aaf976c985.zip
Fix 'vertical-motion' when display strings are around
* src/indent.c (Fvertical_motion): Correct bidi-related condition for character position, when we didn't move vertically. (Bug#61636)
Diffstat (limited to 'src')
-rw-r--r--src/indent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c
index 6de18d749ca..08d2bf5ea28 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2401,7 +2401,7 @@ whether or not it is currently displayed in some window. */)
2401 last line that it occupies. */ 2401 last line that it occupies. */
2402 if (it_start < ZV) 2402 if (it_start < ZV)
2403 { 2403 {
2404 if ((it.bidi_it.scan_dir > 0) 2404 if ((it.bidi_it.scan_dir >= 0 || it.vpos == vpos_init)
2405 ? IT_CHARPOS (it) < it_start 2405 ? IT_CHARPOS (it) < it_start
2406 : IT_CHARPOS (it) > it_start) 2406 : IT_CHARPOS (it) > it_start)
2407 { 2407 {