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.
This commit is contained in:
Eli Zaretskii 2019-03-11 17:32:38 +02:00
parent 93c0527a6a
commit 7fddde1f06

View file

@ -20578,7 +20578,7 @@ highlight_trailing_whitespace (struct it *it)
else
{
while (glyph <= start
&& glyph->type == CHAR_GLYPH
&& (glyph->type == CHAR_GLYPH || glyph->type == STRETCH_GLYPH)
&& NILP (glyph->object))
++glyph;
}