diff options
| author | Eli Zaretskii | 2023-02-26 11:34:14 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2023-02-26 11:34:14 +0200 |
| commit | 5256392a7ec0639ba4ba684d608bb3aaf976c985 (patch) | |
| tree | f26a64d68d895f1461ac35733810f166a61c1d70 /src | |
| parent | 0db88d625a7ca1468af51ef0a04c22577500e059 (diff) | |
| download | emacs-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.c | 2 |
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 | { |