]> git.eshelyaron.com Git - emacs.git/commit
Fix vertical cursor motion across tall text or small images
authorEli Zaretskii <eliz@gnu.org>
Thu, 13 May 2021 13:12:10 +0000 (16:12 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 13 May 2021 13:12:10 +0000 (16:12 +0300)
commit1aaceec93173fd98c25dfe282b2fa2030ccf14f0
tree30e40e01d9464f989ce132a6a5a9e6ea4f8399b0
parent1b919004f65f6987c5815e7d65a00b78e19fc7ac
Fix vertical cursor motion across tall text or small images

'line-move-partial' should in general leave it to the display
engine to scroll or recenter the window due to vertical motion of
the cursor.  The only purpose of this function is to produce
vscroll suitable for scrolling across large (relatively to the
window's height) images, where moving by display lines is not
appropriate.

* src/xdisp.c (Fdisplay__line_is_continued_p): New primitive.

* lisp/simple.el (line-move-partial): Call
'display--line-is-continued-p' to decide whether to leave it to
redisplay to scroll the window as appropriate.  (Bug#48170)
lisp/simple.el
src/xdisp.c