diff options
| author | Eli Zaretskii | 2019-11-16 21:37:41 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-11-16 21:37:41 +0200 |
| commit | 99271ea8de589f2ca5475ab02393c424295ff1f2 (patch) | |
| tree | 5356062abb7ca33608f6a8dadcbfceed03b3a718 /src | |
| parent | a6a9b3061f90313dfc58e3aa85d60c0a966b50dd (diff) | |
| download | emacs-99271ea8de589f2ca5475ab02393c424295ff1f2.tar.gz emacs-99271ea8de589f2ca5475ab02393c424295ff1f2.zip | |
Fix display of R2L text
* src/xdisp.c (extend_face_to_end_of_line): Fix padding of R2L
screen lines with stretch glyph on the left. (Bug#38233)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 8aefab964a8..c5676b3e174 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -21719,13 +21719,17 @@ extend_face_to_end_of_line (struct it *it) | |||
| 21719 | } | 21719 | } |
| 21720 | } | 21720 | } |
| 21721 | 21721 | ||
| 21722 | /* Fill space until window edge with the merged face. */ | 21722 | /* Fill space until window edge with the merged face. Do that |
| 21723 | const int stretch_width = it->last_visible_x - it->current_x; | 21723 | only for L2R rows, as R2L rows are handled specially below. */ |
| 21724 | if (!it->glyph_row->reversed_p) | ||
| 21725 | { | ||
| 21726 | const int stretch_width = it->last_visible_x - it->current_x; | ||
| 21724 | 21727 | ||
| 21725 | if (stretch_width > 0) | 21728 | if (stretch_width > 0) |
| 21726 | append_stretch_glyph (it, Qnil, stretch_width, | 21729 | append_stretch_glyph (it, Qnil, stretch_width, |
| 21727 | it->ascent + it->descent, | 21730 | it->ascent + it->descent, |
| 21728 | stretch_ascent); | 21731 | stretch_ascent); |
| 21732 | } | ||
| 21729 | 21733 | ||
| 21730 | it->char_to_display = saved_char; | 21734 | it->char_to_display = saved_char; |
| 21731 | it->position = saved_pos; | 21735 | it->position = saved_pos; |