]> git.eshelyaron.com Git - emacs.git/commit
Re-enable scroll-margin when cursor-motion optimization is disabled
authorEli Zaretskii <eliz@gnu.org>
Sun, 2 Aug 2020 15:27:33 +0000 (18:27 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 2 Aug 2020 15:27:33 +0000 (18:27 +0300)
commita07ec21bf24b8d1dc41808f997dd0fb78cad3870
tree6b40d82e3e2335537e57d92408aad7b215058b51
parent2e9d1f4d44036e7c0605cfeac091368e013e3ed9
Re-enable scroll-margin when cursor-motion optimization is disabled

* src/xdisp.c (try_window): Fix logic of disabling margins when
cursor is close to BOB or EOB.  Account for header-line, if any,
when computing the scroll margin in pixels.  (Bug#42653)
src/xdisp.c