summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_cmdline.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-11 14:13:37 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-11 14:13:37 +0100
commitd4cf9fc53e0b1d36e84d28ecd5595a6f102f325e (patch)
tree98a005b1fe189f748dbfb09221fcb4e8ca4a066b /src/testdir/test_cmdline.vim
parentf797e309caff48f7a56c73b16e62ff67c4dcbdd6 (diff)
patch 9.0.0191: messages test fails; window size incorrectv9.0.0191
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.
Diffstat (limited to 'src/testdir/test_cmdline.vim')
-rw-r--r--src/testdir/test_cmdline.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim
index 92adbd10b6..521312a8b1 100644
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -239,6 +239,11 @@ func Test_changing_cmdheight()
call term_sendkeys(buf, ":set cmdheight-=2\<CR>")
call VerifyScreenDump(buf, 'Test_changing_cmdheight_4', {})
+ " reducing window size and then setting cmdheight
+ call term_sendkeys(buf, ":resize -1\<CR>")
+ call term_sendkeys(buf, ":set cmdheight=1\<CR>")
+ call VerifyScreenDump(buf, 'Test_changing_cmdheight_5', {})
+
" clean up
call StopVimInTerminal(buf)
call delete('XTest_cmdheight')