aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2015-01-17 20:32:16 +0200
committerEli Zaretskii2015-01-17 20:32:16 +0200
commite6518fc8f5afca5d71582aabb089147cba583966 (patch)
tree68975fea40e5e98bf689323fcb3c260016ad5c83 /src
parentb0af6745d6dfc19cdbeac2b6c34087a44c9f03fd (diff)
downloademacs-e6518fc8f5afca5d71582aabb089147cba583966.tar.gz
emacs-e6518fc8f5afca5d71582aabb089147cba583966.zip
Fix display of images in R2L screen lines
src/xdisp.c (produce_image_glyph): Fix display of images in R2L screen lines: prepend the new glyph to the ones already there instead of appending it.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xdisp.c9
2 files changed, 15 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a90cc41e601..ad4a85ae487 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12015-01-17 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (produce_image_glyph): Fix display of images in R2L
4 screen lines: prepend the new glyph to the ones already there
5 instead of appending it.
6
12015-01-14 Eli Zaretskii <eliz@gnu.org> 72015-01-14 Eli Zaretskii <eliz@gnu.org>
2 8
3 * w32fns.c (w32_set_title_bar_text): New function, including 9 * w32fns.c (w32_set_title_bar_text): New function, including
diff --git a/src/xdisp.c b/src/xdisp.c
index a1cc286512b..b1125d324c2 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -25428,6 +25428,15 @@ produce_image_glyph (struct it *it)
25428 enum glyph_row_area area = it->area; 25428 enum glyph_row_area area = it->area;
25429 25429
25430 glyph = it->glyph_row->glyphs[area] + it->glyph_row->used[area]; 25430 glyph = it->glyph_row->glyphs[area] + it->glyph_row->used[area];
25431 if (it->glyph_row->reversed_p)
25432 {
25433 struct glyph *g;
25434
25435 /* Make room for the new glyph. */
25436 for (g = glyph - 1; g >= it->glyph_row->glyphs[it->area]; g--)
25437 g[1] = *g;
25438 glyph = it->glyph_row->glyphs[it->area];
25439 }
25431 if (glyph < it->glyph_row->glyphs[area + 1]) 25440 if (glyph < it->glyph_row->glyphs[area + 1])
25432 { 25441 {
25433 glyph->charpos = CHARPOS (it->position); 25442 glyph->charpos = CHARPOS (it->position);