Fix bug #11857 with messed up display for insanely large hscroll values.
authorEli Zaretskii <eliz@gnu.org>
Thu, 5 Jul 2012 15:04:57 +0000 (18:04 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 5 Jul 2012 15:04:57 +0000 (18:04 +0300)
commitd6e7bf450c0a084927d533cb6913bc5f540a0032
tree32a92089fbf91bc9f7021a221a9797e0f4e6b8bc
parent431391ec72c1c6ef324201ee00eabaf5399480dc
Fix bug #11857 with messed up display for insanely large hscroll values.

 src/xdisp.c (window_hscroll_limited): New function.
 (pos_visible_p, init_iterator): Use it to avoid overflow of pixel
 coordinates when window's hscroll is set to insanely large
 values.
 src/window.h (struct window) <hscroll, min_hscroll>: Change type to 'int'.
src/ChangeLog
src/window.h
src/xdisp.c