From 576960211cb54bc77dc6969591420bca89c59456 Mon Sep 17 00:00:00 2001 From: Joakim Verona Date: Sun, 18 Jan 2015 00:08:40 +0100 Subject: [PATCH] bidi bugfix Bidi bugfix, same as forimages,by Eli Zaretski --- src/xdisp.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- 2.39.5