]> git.eshelyaron.com Git - emacs.git/commit
Fix scrolling under scroll-preserve-screen-position and margins
authorEli Zaretskii <eliz@gnu.org>
Mon, 18 Jan 2016 16:19:50 +0000 (18:19 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 18 Jan 2016 16:19:50 +0000 (18:19 +0200)
commitb2eb6911dc8af51a5a9f8b7a011cf63c724d533b
treeffffe94026bc497de4cba545d98aad7e46a28d29
parent687a64f637253b5ffbbed3c4f620aabe411e1a17
Fix scrolling under scroll-preserve-screen-position and margins

* src/window.c (window_scroll_pixel_based): When setting point to
preserve screen coordinates, don't let cursor enter either of the
two scroll margins.  Fix incorrect usage of
WINDOW_WANTS_HEADER_LINE_P and use WINDOW_HEADER_LINE_HEIGHT
instead of CURRENT_HEADER_LINE_HEIGHT.  (Bug#22395)
src/window.c