mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
vim-patch:9.0.0671: negative topline using CTRL-Y with 'smoothscroll' and 'diff'
Problem: Negative topline using CTRL-Y with 'smoothscroll' and 'diff'.
(Ernie Rael)
Solution: Only use 'smoothscroll' when 'wrap' is set.
1a58e1d97c
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -272,4 +272,33 @@ describe('smoothscroll', function()
|
||||
|
|
||||
]])
|
||||
end)
|
||||
|
||||
-- oldtest: Test_smoothscroll_diff_mode()
|
||||
it("works with diff mode", function()
|
||||
screen:try_resize(40, 8)
|
||||
exec([[
|
||||
let text = 'just some text here'
|
||||
call setline(1, text)
|
||||
set smoothscroll
|
||||
diffthis
|
||||
new
|
||||
call setline(1, text)
|
||||
set smoothscroll
|
||||
diffthis
|
||||
]])
|
||||
screen:expect([[
|
||||
- ^just some text here |
|
||||
~ |
|
||||
~ |
|
||||
[No Name] [+] |
|
||||
- just some text here |
|
||||
~ |
|
||||
[No Name] [+] |
|
||||
|
|
||||
]])
|
||||
feed('<C-Y>')
|
||||
screen:expect_unchanged()
|
||||
feed('<C-E>')
|
||||
screen:expect_unchanged()
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user