]> git.eshelyaron.com Git - emacs.git/commit
Speed up scrolling when lines are very long and truncated
authorEli Zaretskii <eliz@gnu.org>
Tue, 11 Oct 2022 10:26:01 +0000 (13:26 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 11 Oct 2022 10:26:01 +0000 (13:26 +0300)
commit4f114c0d95caa0e26de3d188cebe9e3cbcb2dee8
treebdc3a6ff63499502012a0957dd2f1bedd0f79405
parent163000fb5980a0a098d1c4620b88a4717702d779
Speed up scrolling when lines are very long and truncated

* src/window.c (window_scroll_for_long_lines): New function.
(window_scroll): Call 'window_scroll_for_long_lines' when lines
are very long and truncated on display.  Also, disable
'fontification-functions' during scrolling in that case.
* src/xdisp.c (redisplay_window): When recentering the window's
display, go back to the centering position using a simplified
method, if lines in the buffer are very long and truncated on
display.
src/window.c
src/xdisp.c