mirror of
https://github.com/neovim/neovim.git
synced 2026-05-20 03:51:18 +00:00
vim-patch:9.0.1309: scrolling two lines with even line count and 'scrolloff' set
Problem: Scrolling two lines with even line count and 'scrolloff' set.
Solution: Adjust how the topline is computed. (closes vim/vim#10545)
1d6539cf36
Cherry-pick test_scroll_opt.vim changes from patch 8.2.1432.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -217,8 +217,8 @@ end of window 2
|
||||
\ '7 line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02',
|
||||
\ '56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02',
|
||||
\ 'UTSRQPONMLKJIHGREDCBA9876543210 02',
|
||||
\ '. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11',
|
||||
\ '. line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11',
|
||||
\ '. line 10 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 10',
|
||||
\ '. line 10 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 10',
|
||||
\ ''], getline(1, '$'))
|
||||
enew!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user