]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix show-trailing-whitespace in R2L text
authorEli Zaretskii <eliz@gnu.org>
Mon, 11 Mar 2019 15:32:38 +0000 (17:32 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 11 Mar 2019 15:32:38 +0000 (17:32 +0200)
* 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

index 6d30afda6d886d88c33d2abbcc38b420ffe5602d..5ae8fc1cf6b317cd378c43bbc79b3cb8cb320d0e 100644 (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;
        }