mirror of
https://github.com/neovim/neovim.git
synced 2026-06-17 01:01:16 +00:00
Problem: srolljump=-100 only scrolls half a page going up, but works
fine going down. update_topline() always falls back to
scroll_cursor_halfway() when the cursor is far above topline.
Solution: Only center when sj is smaller than half the window. Otherwise
call scroll_cursor_top like the downward path does (glepnir).
fixes: vim/vim#1527
closes: vim/vim#20366
a4a60c0fdb