Fix bug #17905 with display of point in partially visible line at end of window.
commit5b5953c070455773f3bdfb9ebcc7ecc15dde0611
authorEli Zaretskii <eliz@gnu.org>
Fri, 4 Jul 2014 13:22:04 +0000 (4 16:22 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 4 Jul 2014 13:22:04 +0000 (4 16:22 +0300)
treec89bd472b9c0058823e7e67af1c7f6bebbe9001b
parentf0f34bc8b91dad77474f8f8c8d9f4bda568eaace
Fix bug #17905 with display of point in partially visible line at end of window.

 src/xdisp.c (redisplay_window): If redisplay of a window ends up
 with point in a partially visible line at end of the window, make
 sure the amended position of point actually has smaller Y
 coordinate; if not, give up and scroll the display.
 src/window.c (window_scroll_pixel_based): When point ends up at the
 last fully visible line, don't let move_it_to stop at the left
 edge of the line and dupe us into thinking point is inside the
 scroll margin.
src/ChangeLog
src/window.c
src/xdisp.c