mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
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 commitfa38c7ce4d
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
53d29a8b62
commit
d366a1f8ed
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user