]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle mid-gstring face changes
authorPip Cet <pipcet@gmail.com>
Sun, 31 May 2020 19:55:48 +0000 (19:55 +0000)
committerPip Cet <pipcet@gmail.com>
Wed, 3 Jun 2020 07:36:38 +0000 (07:36 +0000)
* src/xdisp.c (fill_gstring_glyph_string): Don't extend the glyph
string past face changes.  (Bug#41454)

src/xdisp.c

index f65c3ebcd2f05bc607a1ac7fead5bb56e78e7fec..327e8a183b1322417c8832aaaff7d635e7bb97ca 100644 (file)
@@ -27706,6 +27706,7 @@ fill_gstring_glyph_string (struct glyph_string *s, int face_id,
   while (glyph < last
         && glyph->u.cmp.automatic
         && glyph->u.cmp.id == s->cmp_id
+        && glyph->face_id == face_id
         && s->cmp_to == glyph->slice.cmp.from)
     {
       s->width += glyph->pixel_width;