summaryrefslogtreecommitdiffstats
path: root/src/testdir
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/dumps/Test_cmdheight_zero_4.dump6
-rw-r--r--src/testdir/test_messages.vim20
2 files changed, 26 insertions, 0 deletions
diff --git a/src/testdir/dumps/Test_cmdheight_zero_4.dump b/src/testdir/dumps/Test_cmdheight_zero_4.dump
new file mode 100644
index 0000000000..a91d971b0a
--- /dev/null
+++ b/src/testdir/dumps/Test_cmdheight_zero_4.dump
@@ -0,0 +1,6 @@
+|s+0&#ffffff0|o|m|e| >t|e|x|t| @65
+|~+0#4040ff13&| @73
+|~| @73
+|~| @73
+|═+0#e000002&@74
+|T|y|p|e| @1|:|q|a|!| @1|a|n|d| |p|r|e|s@1| |<|E|n|t|e|r|>| |t|o| |a|b|a|n|d|o|n| |a|l@1| |c|h|a|n|g|e|s| |a|n|d| |e|x|i|t| |V|i|m| @9
diff --git a/src/testdir/test_messages.vim b/src/testdir/test_messages.vim
index ffb7a209ec..7c71edc0ed 100644
--- a/src/testdir/test_messages.vim
+++ b/src/testdir/test_messages.vim
@@ -493,10 +493,30 @@ func Test_cmdheight_zero_dump()
call term_sendkeys(buf, "\<Esc>:echo 'message window'\<CR>")
call VerifyScreenDump(buf, 'Test_cmdheight_zero_3', {})
+ " Message for CTRL-C is in the popup window
+ "call term_sendkeys(buf, ":call popup_clear()\<CR>")
+ call term_sendkeys(buf, "\<C-C>")
+ call VerifyScreenDump(buf, 'Test_cmdheight_zero_4', {})
+
" clean up
call StopVimInTerminal(buf)
call delete('XtestCmdheight')
endfunc
+func Test_cmdheight_zero_shell()
+ CheckUnix
+
+ set cmdheight=0
+ set nomore
+ call setline(1, 'foo!')
+ silent !echo <cWORD> > Xfile.out
+ call assert_equal(['foo!'], readfile('Xfile.out'))
+ call delete('Xfile.out')
+ redraw!
+
+ set more&
+ set cmdheight&
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab