Mercurial > vim
diff src/testdir/test_messages.vim @ 30027:7e787f94852b v9.0.0351
patch 9.0.0351: message window may obscure the command line
Commit: https://github.com/vim/vim/commit/b5b4f61cf192324379b6a8c4f7ed83a13f0e3bc6
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 1 16:43:17 2022 +0100
patch 9.0.0351: message window may obscure the command line
Problem: Message window may obscure the command line.
Solution: Reduce the maximum height of the message window.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 01 Sep 2022 17:45:03 +0200 |
parents | bb0e525e1393 |
children | c222a5a2a42a |
line wrap: on
line diff
--- 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')