From 7fddde1f06def311c198303e6ac5a26256f17eb7 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 11 Mar 2019 17:32:38 +0200 Subject: [PATCH] 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. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5