From: Eli Zaretskii Date: Mon, 11 Mar 2019 15:32:38 +0000 (+0200) Subject: Fix show-trailing-whitespace in R2L text X-Git-Tag: emacs-27.0.90~3427 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7fddde1f06def311c198303e6ac5a26256f17eb7;p=emacs.git 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. --- 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) else { while (glyph <= start - && glyph->type == CHAR_GLYPH + && (glyph->type == CHAR_GLYPH || glyph->type == STRETCH_GLYPH) && NILP (glyph->object)) ++glyph; }