mirror of
https://github.com/neovim/neovim.git
synced 2025-11-26 12:10:40 +00:00
vim-patch:9.0.0672: line partly shows with 'smoothscroll' and 'scrolloff' zero
Problem: Cursor line only partly shows with 'smoothscroll' and 'scrolloff'
zero.
Solution: Do not use 'smoothscroll' when adjusting the bottom of the window.
(closes vim/vim#11269)
9bab7a0243
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -301,4 +301,30 @@ describe('smoothscroll', function()
|
||||
feed('<C-E>')
|
||||
screen:expect_unchanged()
|
||||
end)
|
||||
|
||||
-- oldtest: Test_smoothscroll_wrap_scrolloff_zero()
|
||||
it("works with zero 'scrolloff'", function()
|
||||
screen:try_resize(40, 8)
|
||||
exec([[
|
||||
call setline(1, ['Line' .. (' with some text'->repeat(7))]->repeat(7))
|
||||
set smoothscroll scrolloff=0
|
||||
:3
|
||||
]])
|
||||
screen:expect([[
|
||||
<<<h some text with some text |
|
||||
Line with some text with some text with |
|
||||
some text with some text with some text |
|
||||
with some text with some text |
|
||||
^Line with some text with some text with |
|
||||
some text with some text with some text |
|
||||
with some text with some text |
|
||||
|
|
||||
]])
|
||||
feed('j')
|
||||
screen:expect_unchanged()
|
||||
feed('<C-E>j')
|
||||
screen:expect_unchanged()
|
||||
feed('G')
|
||||
screen:expect_unchanged()
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user