Fix cursor drawing in hscrolled R2L screen lines.
commit4457cc825bdbe30f704c80edbae25d12e7e5bab2
authorEli Zaretskii <eliz@gnu.org>
Sun, 31 Aug 2014 15:46:47 +0000 (31 18:46 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 31 Aug 2014 15:46:47 +0000 (31 18:46 +0300)
tree8988d99dd1e08e031bc4de5b8ff0614956932a59
parent53d815b09fe53c749acce4c8aaf427367050f2bd
Fix cursor drawing in hscrolled R2L screen lines.

 src/xdisp.c (get_glyph_string_clip_rects): Don't let the width of a
 clipping rectangle become negative (i.e. large positive, since
 it's an unsigned data type).  This can happen in R2L hscrolled
 glyph rows, and caused us to draw the cursor glyph on the fringe.
 For the details, see
 http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00543.html.
src/ChangeLog
src/xdisp.c