vim-patch:9.0.1491: wrong scrolling with ls=0 and :botright split

Problem:    Wrong scrolling with ls=0 and :botright split.
Solution:   Add statusline before calling frame_new_height(). (closes vim/vim#12299)

fbf2071ac9
(cherry picked from commit fa38c7ce4d)
This commit is contained in:
zeertzjq
2023-04-27 08:04:07 +08:00
committed by github-actions[bot]
parent 53d29a8b62
commit d366a1f8ed
3 changed files with 59 additions and 16 deletions

View File

@@ -3,8 +3,37 @@ local Screen = require('test.functional.ui.screen')
local clear = helpers.clear
local exec = helpers.exec
local exec_lua = helpers.exec_lua
local command = helpers.command
local feed = helpers.feed
-- oldtest: Test_window_cmd_ls0_split_scrolling()
it('scrolling with laststatus=0 and :botright split', function()
clear('--cmd', 'set ruler')
local screen = Screen.new(40, 10)
screen:set_default_attr_ids({
[1] = {reverse = true}, -- StatusLineNC
})
screen:attach()
exec([[
set laststatus=0
call setline(1, range(1, 100))
normal! G
]])
command('botright split')
screen:expect([[
97 |
98 |
99 |
100 |
{1:[No Name] [+] 100,1 Bot}|
97 |
98 |
99 |
^100 |
100,1 Bot |
]])
end)
describe('splitkeep', function()
local screen