diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-04-27 09:07:30 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-27 09:07:30 +0800 |
| commit | 1fc468aed2809a92769fbdfd6c422c2b9b12a233 (patch) | |
| tree | 1b25227fa25417e6152e71dc2f033da2cf18f4fd /test/old/testdir | |
| parent | 3b0df1780e2c8526bda5dead18ee7cc45925caba (diff) | |
| download | rneovim-1fc468aed2809a92769fbdfd6c422c2b9b12a233.tar.gz rneovim-1fc468aed2809a92769fbdfd6c422c2b9b12a233.tar.bz2 rneovim-1fc468aed2809a92769fbdfd6c422c2b9b12a233.zip | |
vim-patch:9.0.1491: wrong scrolling with ls=0 and :botright split (#23333)
Problem: Wrong scrolling with ls=0 and :botright split.
Solution: Add statusline before calling frame_new_height(). (closes vim/vim#12299)
https://github.com/vim/vim/commit/fbf2071ac9ef08302a1df86c15f3d4ddbe871243
Diffstat (limited to 'test/old/testdir')
| -rw-r--r-- | test/old/testdir/test_window_cmd.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/old/testdir/test_window_cmd.vim b/test/old/testdir/test_window_cmd.vim index 9320d67498..f938203736 100644 --- a/test/old/testdir/test_window_cmd.vim +++ b/test/old/testdir/test_window_cmd.vim @@ -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) |