From: Joakim Verona Date: Sat, 17 Jan 2015 23:08:40 +0000 (+0100) Subject: bidi bugfix X-Git-Tag: emacs-25.0.90~2598 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=576960211cb54bc77dc6969591420bca89c59456;p=emacs.git bidi bugfix Bidi bugfix, same as forimages,by Eli Zaretski --- diff --git a/src/xdisp.c b/src/xdisp.c index b38e8a64c5d..fcc0809a464 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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);