mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
vim-patch:9.0.0807: with 'smoothscroll' typing "0" may not go to the first column
Problem: With 'smoothscroll' typing "0" may not go to the first column.
Solution: Recompute w_cline_height when needed. Do not scroll up when it
would move the cursor.
d5337efece
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -482,7 +482,14 @@ describe('smoothscroll', function()
|
||||
]])
|
||||
-- 'scrolloff' set to 2, scrolling down, cursor moves screen line up
|
||||
feed('<C-E>gj<C-Y>')
|
||||
screen:expect_unchanged()
|
||||
screen:expect([[
|
||||
<<<ots of text with lots of text with lo|
|
||||
ts of text with lots of text with lots o|
|
||||
f text wi^th lots of text with lots of te|
|
||||
xt with lots of text with lots of text w|
|
||||
ith lots of text with lots of text with |
|
||||
|
|
||||
]])
|
||||
end)
|
||||
|
||||
-- oldtest: Test_smoothscroll_one_long_line()
|
||||
|
||||
Reference in New Issue
Block a user