mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05:00
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>
This commit is contained in:
committed by
Christian Brabandt
parent
982e191b38
commit
5a2e3ec9ac
@@ -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 : */
|
||||
|
||||
Reference in New Issue
Block a user