]> git.eshelyaron.com Git - emacs.git/commit
Improve accuracy of scrolling commands
authorEli Zaretskii <eliz@gnu.org>
Mon, 14 Dec 2020 18:23:24 +0000 (20:23 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 14 Dec 2020 18:23:24 +0000 (20:23 +0200)
commit47a854bf24c8a36bf1e8ac32c8b5c9ebcba1d90a
tree4c70876a8282aecef5aed00b70744b0bc619f274
parent2f1441cbe3ccd49037e2464485658f7f20f3d804
Improve accuracy of scrolling commands

* src/xdisp.c (move_it_vertically_backward): Don't rely on
line_bottom_y for accurate calculation of the next screen line's Y
coordinate: it doesn't work when the current screen line was not
yet traversed.  Instead, record the previous Y coordinate and
reseat there if overshoot is detected.
* src/window.c (window_scroll_pixel_based): Calculate the new
window-start point more accurately when screen lines have uneven
height.  (Bug#8355)
src/window.c
src/xdisp.c