diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-09-26 07:46:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-26 07:46:58 +0800 |
commit | 9ffa041a9a5fc8cd9acca97cae16f66ba0c82805 (patch) | |
tree | 28c75d04f3aac3380afb5623c86120705d120b45 /src | |
parent | ac66f5af06ac1f306b0ddb366ba81093508546c4 (diff) | |
download | rneovim-9ffa041a9a5fc8cd9acca97cae16f66ba0c82805.tar.gz rneovim-9ffa041a9a5fc8cd9acca97cae16f66ba0c82805.tar.bz2 rneovim-9ffa041a9a5fc8cd9acca97cae16f66ba0c82805.zip |
vim-patch:9.0.0586: missing change in test (#20347)
Problem: Missing change in test.
Solution: Add the test change.
https://github.com/vim/vim/commit/124af71a28a633fa655cff41bc21d398481ce45f
vim-patch:9.0.0585: when long message test fails the error message is not visible
Problem: When long message test fails the error message is not visible.
Solution: Dump more lines.
https://github.com/vim/vim/commit/6a879878f4e1918a05244e6acd4c73c3135cf941
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_messages.vim | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/testdir/test_messages.vim b/src/nvim/testdir/test_messages.vim index 2672fcb69d..8e66a2c529 100644 --- a/src/nvim/testdir/test_messages.vim +++ b/src/nvim/testdir/test_messages.vim @@ -357,15 +357,14 @@ func Test_quit_long_message() let content =<< trim END echom range(9999)->join("\x01") END - call writefile(content, 'Xtest_quit_message') - let buf = RunVimInTerminal('-S Xtest_quit_message', #{rows: 6, wait_for_ruler: 0}) - call WaitForAssert({-> assert_match('^-- More --', term_getline(buf, 6))}) + call writefile(content, 'Xtest_quit_message', 'D') + let buf = RunVimInTerminal('-S Xtest_quit_message', #{rows: 10, wait_for_ruler: 0}) + call WaitForAssert({-> assert_match('^-- More --', term_getline(buf, 10))}) call term_sendkeys(buf, "q") call VerifyScreenDump(buf, 'Test_quit_long_message', {}) " clean up call StopVimInTerminal(buf) - call delete('Xtest_quit_message') endfunc " this was missing a terminating NUL |