diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-01 16:43:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-01 16:43:17 +0100 |
commit | b5b4f61cf192324379b6a8c4f7ed83a13f0e3bc6 (patch) | |
tree | fa39548983e85dc2255c0dba25a17b9561a97e29 /src/testdir | |
parent | 7d7ad7b2e8c6403033fbdb083f092321c0ccbfaf (diff) |
patch 9.0.0351: message window may obscure the command linev9.0.0351
Problem: Message window may obscure the command line.
Solution: Reduce the maximum height of the message window.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/dumps/Test_echowindow_4.dump | 8 | ||||
-rw-r--r-- | src/testdir/test_messages.vim | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/testdir/dumps/Test_echowindow_4.dump b/src/testdir/dumps/Test_echowindow_4.dump new file mode 100644 index 0000000000..b674e9e6fb --- /dev/null +++ b/src/testdir/dumps/Test_echowindow_4.dump @@ -0,0 +1,8 @@ +>═+0#e000002#ffffff0@74 +|l|i|n|e| |1|4| @67 +|l|i|n|e| |1|5| @67 +|l|i|n|e| |1|6| @67 +|l|i|n|e| |1|7| @67 +|l|i|n|e| |1|8| @67 +|l|i|n|e| |1|9| @67 +| +0#0000000&@56|1|,|1| @10|A|l@1| diff --git a/src/testdir/test_messages.vim b/src/testdir/test_messages.vim index 6bdaedfd69..10af69c67d 100644 --- a/src/testdir/test_messages.vim +++ b/src/testdir/test_messages.vim @@ -396,6 +396,11 @@ func Test_echowindow() echowindow a:arg endfunc echowindow 'first line' + func ManyMessages() + for n in range(20) + echowindow 'line' n + endfor + endfunc END call writefile(lines, 'XtestEchowindow') let buf = RunVimInTerminal('-S XtestEchowindow', #{rows: 8}) @@ -407,6 +412,9 @@ func Test_echowindow() call term_sendkeys(buf, ":call popup_clear()\<CR>") call VerifyScreenDump(buf, 'Test_echowindow_3', {}) + call term_sendkeys(buf, ":call ManyMessages()\<CR>") + call VerifyScreenDump(buf, 'Test_echowindow_4', {}) + " clean up call StopVimInTerminal(buf) call delete('XtestEchowindow') |