diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-03-28 10:07:29 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-28 10:10:40 +0100 |
commit | 5a2e3ec9ac72b6e644fea4ebba7e632498296e2f (patch) | |
tree | 60995794ab4c3a4e3b53156b2b1b2fd4410d0ed1 /src/mouse.c | |
parent | 982e191b38b493d148d73871a724381214e4c62f (diff) |
patch 9.1.0215: Half-page scrolling does not support smooth-scrollingv9.1.0215
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>
Diffstat (limited to 'src/mouse.c')
-rw-r--r-- | src/mouse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mouse.c b/src/mouse.c index af14af0501..247c6df8e2 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -1129,7 +1129,7 @@ do_mousescroll(cmdarg_T *cap) if (!(State & MODE_INSERT) && (mouse_vert_step < 0 || shift_or_ctrl)) { // whole page up or down - onepage(cap->arg == MSCR_UP ? FORWARD : BACKWARD, 1L); + pagescroll(cap->arg == MSCR_UP ? FORWARD : BACKWARD, 1L, FALSE); } else { |