diff options
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/dumps/Test_cmdheight_zero_1.dump | 6 | ||||
-rw-r--r-- | src/testdir/dumps/Test_cmdheight_zero_2.dump | 6 | ||||
-rw-r--r-- | src/testdir/dumps/Test_cmdheight_zero_3.dump | 6 | ||||
-rw-r--r-- | src/testdir/test_messages.vim | 28 |
4 files changed, 46 insertions, 0 deletions
diff --git a/src/testdir/dumps/Test_cmdheight_zero_1.dump b/src/testdir/dumps/Test_cmdheight_zero_1.dump new file mode 100644 index 0000000000..6fd15a07db --- /dev/null +++ b/src/testdir/dumps/Test_cmdheight_zero_1.dump @@ -0,0 +1,6 @@ +>s+0&#ffffff0|o|m|e| |t|e|x|t| @65 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 diff --git a/src/testdir/dumps/Test_cmdheight_zero_2.dump b/src/testdir/dumps/Test_cmdheight_zero_2.dump new file mode 100644 index 0000000000..d8c3aeafec --- /dev/null +++ b/src/testdir/dumps/Test_cmdheight_zero_2.dump @@ -0,0 +1,6 @@ +|s+0&#e0e0e08|o|m|e| >t+0&#ffffff0|e|x|t| @65 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 diff --git a/src/testdir/dumps/Test_cmdheight_zero_3.dump b/src/testdir/dumps/Test_cmdheight_zero_3.dump new file mode 100644 index 0000000000..ea83d3dccf --- /dev/null +++ b/src/testdir/dumps/Test_cmdheight_zero_3.dump @@ -0,0 +1,6 @@ +|s+0&#ffffff0|o|m|e| >t|e|x|t| @65 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|═+0#e000002&@74 +|m|e|s@1|a|g|e| |w|i|n|d|o|w| @60 diff --git a/src/testdir/test_messages.vim b/src/testdir/test_messages.vim index 00e942e7b1..ffb7a209ec 100644 --- a/src/testdir/test_messages.vim +++ b/src/testdir/test_messages.vim @@ -471,4 +471,32 @@ func Test_cmdheight_zero() redraw endfunc +func Test_cmdheight_zero_dump() + CheckScreendump + + let lines =<< trim END + set cmdheight=0 + set showmode + call setline(1, 'some text') + END + call writefile(lines, 'XtestCmdheight') + let buf = RunVimInTerminal('-S XtestCmdheight', #{rows: 6}) + " The "-- INSERT --" indicator should not be visible. + call term_sendkeys(buf, "i") + call VerifyScreenDump(buf, 'Test_cmdheight_zero_1', {}) + + " The "-- VISUAL --" indicator should not be visible. + call term_sendkeys(buf, "\<Esc>vw") + call VerifyScreenDump(buf, 'Test_cmdheight_zero_2', {}) + + " Echo'd text is in a popup window + call term_sendkeys(buf, "\<Esc>:echo 'message window'\<CR>") + call VerifyScreenDump(buf, 'Test_cmdheight_zero_3', {}) + + " clean up + call StopVimInTerminal(buf) + call delete('XtestCmdheight') +endfunc + + " vim: shiftwidth=2 sts=2 expandtab |