]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0215: Half-page scrolling does not support smooth-scrolling v9.1.0215
authorLuuk van Baal <luukvbaal@gmail.com>
Thu, 28 Mar 2024 09:07:29 +0000 (10:07 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 28 Mar 2024 09:10:40 +0000 (10:10 +0100)
commit5a2e3ec9ac72b6e644fea4ebba7e632498296e2f
tree60995794ab4c3a4e3b53156b2b1b2fd4410d0ed1
parent982e191b38b493d148d73871a724381214e4c62f
patch 9.1.0215: Half-page scrolling does not support smooth-scrolling

Problem:  Page-wise scrolling with Ctrl-D/Ctrl-U implements
          it's own logic to change the topline and cursor.
          More logic than necessary for scrolling with Ctrl-F/Ctrl-B
          was removed in patch 9.1.0211.
Solution: Re-use the logic from Ctrl-E/Ctrl-Y/Ctrl-F/Ctrl-B while
          staying backward compatible as much as possible.
          Restore some of the logic that determined how many lines will
          be scrolled (Luuk van Baal)

closes: #14316

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
12 files changed:
runtime/doc/options.txt
runtime/doc/version9.txt
src/edit.c
src/mouse.c
src/move.c
src/normal.c
src/proto/move.pro
src/testdir/dumps/Test_cursorline_redraw_2.dump
src/testdir/test_edit.vim
src/testdir/test_normal.vim
src/testdir/test_scroll_opt.vim
src/version.c