diff options
| author | Eli Zaretskii | 2019-03-11 17:32:38 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-03-11 17:32:38 +0200 |
| commit | 7fddde1f06def311c198303e6ac5a26256f17eb7 (patch) | |
| tree | cd186a01b69386661b5342367ccc6177692d3a09 /src | |
| parent | 93c0527a6afbdd5228ff5590d03a35f738a47d18 (diff) | |
| download | emacs-7fddde1f06def311c198303e6ac5a26256f17eb7.tar.gz emacs-7fddde1f06def311c198303e6ac5a26256f17eb7.zip | |
Fix show-trailing-whitespace in R2L text
* src/xdisp.c (highlight_trailing_whitespace): Allow for
stretch glyphs at the left edge of R2L lines, when skipping
glyphs inserted by the display engine. This unbreaks
show-trailing-whitespace in R2L lines.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 6d30afda6d8..5ae8fc1cf6b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -20578,7 +20578,7 @@ highlight_trailing_whitespace (struct it *it) | |||
| 20578 | else | 20578 | else |
| 20579 | { | 20579 | { |
| 20580 | while (glyph <= start | 20580 | while (glyph <= start |
| 20581 | && glyph->type == CHAR_GLYPH | 20581 | && (glyph->type == CHAR_GLYPH || glyph->type == STRETCH_GLYPH) |
| 20582 | && NILP (glyph->object)) | 20582 | && NILP (glyph->object)) |
| 20583 | ++glyph; | 20583 | ++glyph; |
| 20584 | } | 20584 | } |