Mercurial > emacs
diff src/dispextern.h @ 107645:6e29ba4351e0
Fix glyph_row reversed_p flag in empty lines between paragraphs.
bidi.c (bidi_get_next_char_visually): Improve commentary.
dispextern.h (PRODUCE_GLYPHS): Set the reversed_p flag in the
iterator's glyph_row here.
xdisp.c (handle_invisible_prop, set_iterator_to_next)
(next_element_from_buffer): Don't set the reversed_p flag in the
iterator's glyph_row here.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sun, 28 Mar 2010 11:18:10 -0400 |
parents | 1d298baf84b9 |
children | 41747909cb4b |
line wrap: on
line diff
--- a/src/dispextern.h Sun Mar 28 09:04:11 2010 -0400 +++ b/src/dispextern.h Sun Mar 28 11:18:10 2010 -0400 @@ -2399,6 +2399,13 @@ #define PRODUCE_GLYPHS(IT) \ do { \ extern int inhibit_free_realized_faces; \ + if ((IT)->glyph_row != NULL && (IT)->bidi_p) \ + { \ + if ((IT)->bidi_it.paragraph_dir == R2L) \ + (IT)->glyph_row->reversed_p = 1; \ + else \ + (IT)->glyph_row->reversed_p = 0; \ + } \ if (FRAME_RIF ((IT)->f) != NULL) \ FRAME_RIF ((IT)->f)->produce_glyphs ((IT)); \ else \