emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 7fddde1: Fix show-trailing-whitespace in R2L text


From: Eli Zaretskii
Subject: [Emacs-diffs] master 7fddde1: Fix show-trailing-whitespace in R2L text
Date: Mon, 11 Mar 2019 11:33:27 -0400 (EDT)

branch: master
commit 7fddde1f06def311c198303e6ac5a26256f17eb7
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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 6d30afd..5ae8fc1 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;
        }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]