summaryrefslogtreecommitdiffstats
path: root/src/proto
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2024-03-28 10:07:29 +0100
committerChristian Brabandt <cb@256bit.org>2024-03-28 10:10:40 +0100
commit5a2e3ec9ac72b6e644fea4ebba7e632498296e2f (patch)
tree60995794ab4c3a4e3b53156b2b1b2fd4410d0ed1 /src/proto
parent982e191b38b493d148d73871a724381214e4c62f (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/proto')
-rw-r--r--src/proto/move.pro3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/proto/move.pro b/src/proto/move.pro
index bc9c025635..91c8791802 100644
--- a/src/proto/move.pro
+++ b/src/proto/move.pro
@@ -46,7 +46,6 @@ void set_empty_rows(win_T *wp, int used);
void scroll_cursor_bot(int min_scroll, int set_topbot);
void scroll_cursor_halfway(int atend, int prefer_above);
void cursor_correct(void);
-int onepage(int dir, long count);
-void halfpage(int flag, linenr_T Prenum);
+int pagescroll(int dir, long count, int half);
void do_check_cursorbind(void);
/* vim: set ft=c : */