Fix display of R2L lines when the last character fits only partially.
commita1767506c07b1c6b89ad9d837b457f3bbd6a5e6e
authorEli Zaretskii <eliz@gnu.org>
Fri, 1 Aug 2014 09:39:04 +0000 (1 12:39 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 1 Aug 2014 09:39:04 +0000 (1 12:39 +0300)
tree8363c876aaead95bdc7ac89546e0b695e9e7ee93
parentf0f377774b3db7a8c0c3b1e28651876179fdfe2b
Fix display of R2L lines when the last character fits only partially.

 See http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00476.html
 for the details.
 src/xdisp.c (extend_face_to_end_of_line): If the last glyph of an
 R2L row is visible only partially, give the row a negative x
 offset.
 (display_line): Fix the calculation of the glyph whose pixel width
 is used to decide whether the last produced glyph fits on the
 line.  When the last glyph fits only partially, give the row a
 negative x offset.
src/ChangeLog
src/xdisp.c