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:
zeertzjq
2023-02-16 07:25:16 +08:00
parent f1c5887377
commit 968cd1ed93
6 changed files with 74 additions and 35 deletions

View File

@@ -290,8 +290,8 @@ describe('search cmdline', function()
-- First match
feed('/thei')
screen:expect([[
3 the |
4 {inc:thei}r |
5 there |
/thei^ |
]])
-- Match from initial cursor position when modifying search