diff options
| author | Eli Zaretskii | 2023-02-18 13:40:56 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2023-02-18 13:40:56 +0200 |
| commit | 6ea3c105ab1377030e470afd02eabbf3e6570c6c (patch) | |
| tree | 610eb263461216f0eca0a1547864d8bde0ab3634 /src | |
| parent | e985466556c71743ec9f47ee969bb4f45da141aa (diff) | |
| download | emacs-6ea3c105ab1377030e470afd02eabbf3e6570c6c.tar.gz emacs-6ea3c105ab1377030e470afd02eabbf3e6570c6c.zip | |
Fix cursor motion when there's line-prefix and display string at BOL
* src/xdisp.c (move_it_in_display_line_to): Handle 'line-prefix' and
'wrap-prefix' when the screen line has a display string at its
beginning. (Bug#61580)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 1f630de7586..f5d54974b13 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -9609,8 +9609,8 @@ move_it_in_display_line_to (struct it *it, | |||
| 9609 | else | 9609 | else |
| 9610 | line_number_pending = true; | 9610 | line_number_pending = true; |
| 9611 | } | 9611 | } |
| 9612 | /* If there's a line-/wrap-prefix, handle it. */ | 9612 | /* If there's a line-/wrap-prefix, handle it, if we didn't already. */ |
| 9613 | if (it->method == GET_FROM_BUFFER) | 9613 | if (it->area == TEXT_AREA && !it->string_from_prefix_prop_p) |
| 9614 | handle_line_prefix (it); | 9614 | handle_line_prefix (it); |
| 9615 | } | 9615 | } |
| 9616 | 9616 | ||