diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2022-08-16 14:58:41 +0900 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-17 09:35:07 +0800 |
commit | 9a6d3bd76e1edcedf71f31dfa5e1600c1c5d2c3a (patch) | |
tree | a503a2989c51957a6e6e53eda62430784572b6b7 /src/nvim/testdir/test_messages.vim | |
parent | 5977a96b3fa8283862d5768daebdbdaae84a8b3d (diff) | |
download | rneovim-9a6d3bd76e1edcedf71f31dfa5e1600c1c5d2c3a.tar.gz rneovim-9a6d3bd76e1edcedf71f31dfa5e1600c1c5d2c3a.tar.bz2 rneovim-9a6d3bd76e1edcedf71f31dfa5e1600c1c5d2c3a.zip |
vim-patch:9.0.0191: messages test fails; window size incorrect
Problem: Messages test fails; window size incorrect when 'cmdheight' is
made smaller.
Solution: Properly cleanup after test with cmdheight zero. Resize windows
correctly when 'cmdheight' gets smaller.
https://github.com/vim/vim/commit/d4cf9fc53e0b1d36e84d28ecd5595a6f102f325e
N/A patches for version.c:
vim-patch:9.0.0192: possible invalid memory access when 'cmdheight' is zero
Problem: Possible invalid memory access when 'cmdheight' is zero. (Martin
Tournoij)
Solution: Avoid going over the end of w_lines[] when w_height is Rows.
(closes vim/vim#10882)
https://github.com/vim/vim/commit/fdc5d17d58cc9c9edc9fb2816e1afaabc531bf1e
Diffstat (limited to 'src/nvim/testdir/test_messages.vim')
-rw-r--r-- | src/nvim/testdir/test_messages.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_messages.vim b/src/nvim/testdir/test_messages.vim index e181641a3b..3a607ff533 100644 --- a/src/nvim/testdir/test_messages.vim +++ b/src/nvim/testdir/test_messages.vim @@ -376,6 +376,7 @@ func Test_fileinfo_after_echo() endfunc func Test_cmdheight_zero() + enew set cmdheight=0 set showcmd redraw! @@ -425,10 +426,13 @@ func Test_cmdheight_zero() 7 call feedkeys(":\"\<C-R>=line('w0')\<CR>\<CR>", "xt") call assert_equal('"1', @:) - bwipe! + bwipe! + bwipe! set cmdheight& set showcmd& + tabnew + tabonly endfunc " vim: shiftwidth=2 sts=2 expandtab |