]> git.eshelyaron.com Git - emacs.git/commitdiff
bidi bugfix
authorJoakim Verona <joakim@verona.se>
Sat, 17 Jan 2015 23:08:40 +0000 (00:08 +0100)
committerJoakim Verona <joakim@verona.se>
Sat, 17 Jan 2015 23:08:40 +0000 (00:08 +0100)
Bidi bugfix, same as forimages,by Eli Zaretski

src/xdisp.c

index b38e8a64c5db8694ba9d6fbb07a90972507f29d6..fcc0809a464dc81c3be0c6a6f519ab63517785bb 100644 (file)
@@ -25853,6 +25853,15 @@ produce_xwidget_glyph (struct it *it)
       enum glyph_row_area area = it->area;
 
       glyph = it->glyph_row->glyphs[area] + it->glyph_row->used[area];
+      if (it->glyph_row->reversed_p)
+       {
+         struct glyph *g;
+
+         /* Make room for the new glyph.  */
+         for (g = glyph - 1; g >= it->glyph_row->glyphs[it->area]; g--)
+           g[1] = *g;
+         glyph = it->glyph_row->glyphs[it->area];
+       }
       if (glyph < it->glyph_row->glyphs[area + 1])
        {
          glyph->charpos = CHARPOS (it->position);