mirror of
https://github.com/neovim/neovim.git
synced 2026-07-22 00:51: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]
parent
53d29a8b62
commit
d366a1f8ed
@@ -19,6 +19,24 @@ func Test_window_cmd_ls0_with_split()
|
||||
set ls&vim
|
||||
endfunc
|
||||
|
||||
func Test_window_cmd_ls0_split_scrolling()
|
||||
CheckRunVimInTerminal
|
||||
|
||||
let lines =<< trim END
|
||||
set laststatus=0
|
||||
call setline(1, range(1, 100))
|
||||
normal! G
|
||||
END
|
||||
call writefile(lines, 'XTestLs0SplitScrolling', 'D')
|
||||
let buf = RunVimInTerminal('-S XTestLs0SplitScrolling', #{rows: 10})
|
||||
|
||||
call term_sendkeys(buf, ":botright split\<CR>")
|
||||
call WaitForAssert({-> assert_match('Bot$', term_getline(buf, 5))})
|
||||
call assert_equal('100', term_getline(buf, 4))
|
||||
|
||||
call StopVimInTerminal(buf)
|
||||
endfunc
|
||||
|
||||
func Test_window_cmd_cmdwin_with_vsp()
|
||||
let efmt = 'Expected 0 but got %d (in ls=%d, %s window)'
|
||||
for v in range(0, 2)
|
||||
|
||||
Reference in New Issue
Block a user