Mercurial > vim
diff src/testdir/test_messages.vim @ 29916:cf55d7e10bb1 v9.0.0296
patch 9.0.0296: message in popup is shortened unnecessary
Commit: https://github.com/vim/vim/commit/35a4fbc5d04820d9b08e7da2e295a7e8210e2e2c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 28 14:39:53 2022 +0100
patch 9.0.0296: message in popup is shortened unnecessary
Problem: Message in popup is shortened unnecessary.
Solution: Do not use 'showcmd' and 'ruler' for a message in the popup.
Set the timer when unhiding the message popup.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 28 Aug 2022 15:45:04 +0200 |
parents | c9ff1715f03d |
children | 64b885d1acfc |
line wrap: on
line diff
--- 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