mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
vim-patch:9.0.0673: first line wong with 'smoothscroll' and 'scrolloff' zero
Problem: First line not scrolled properly with 'smoothscroll' and
'scrolloff' zero and using "k".
Solution: Make sure the cursor position is visible.
46b54747c5
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -198,6 +198,7 @@ func Test_smoothscroll_wrap_scrolloff_zero()
|
||||
|
||||
call VerifyScreenDump(buf, 'Test_smooth_wrap_1', {})
|
||||
|
||||
" moving cursor down - whole bottom line shows
|
||||
call term_sendkeys(buf, "j")
|
||||
call VerifyScreenDump(buf, 'Test_smooth_wrap_2', {})
|
||||
|
||||
@@ -207,6 +208,10 @@ func Test_smoothscroll_wrap_scrolloff_zero()
|
||||
call term_sendkeys(buf, "G")
|
||||
call VerifyScreenDump(buf, 'Test_smooth_wrap_4', {})
|
||||
|
||||
" moving cursor up - whole top line shows
|
||||
call term_sendkeys(buf, "2k")
|
||||
call VerifyScreenDump(buf, 'Test_smooth_wrap_5', {})
|
||||
|
||||
call StopVimInTerminal(buf)
|
||||
endfunc
|
||||
|
||||
|
Reference in New Issue
Block a user