mirror of
https://github.com/neovim/neovim.git
synced 2026-04-27 17:54:10 +00:00
vim-patch:9.1.0211: page-wise scrolling does not support smooth-scrolling
Problem: Page-wise scrolling with Ctrl-F/Ctrl-B implements
it's own logic to change the topline and cursor.
In doing so, skipcol is not handled properly for
'smoothscroll', and virtual lines.
Solution: Re-use the logic from Ctrl-E/Ctrl-Y while staying
backward compatible as much as possible.
b9f5b95b7b
This commit is contained in:
@@ -740,7 +740,7 @@ describe('smoothscroll', function()
|
||||
|
|
||||
]])
|
||||
exec("call setline(92, 'a'->repeat(100))")
|
||||
feed('<C-B>G')
|
||||
feed('<C-L><C-B>G')
|
||||
-- cursor is not placed below window
|
||||
screen:expect([[
|
||||
{1:<<<}aaaaaaaaaaaaaaaaa |
|
||||
|
||||
Reference in New Issue
Block a user