Mercurial > vim
diff src/testdir/test_tabpage.vim @ 16477:8cc31b1b1d23 v8.1.1242
patch 8.1.1242: no cmdline redraw when tabpages have different 'cmdheight'
commit https://github.com/vim/vim/commit/0fef0aeb1ca6c85df0a656a70b6ca49c34563c89
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 1 20:30:40 2019 +0200
patch 8.1.1242: no cmdline redraw when tabpages have different 'cmdheight'
Problem: No cmdline redraw when tabpages have different 'cmdheight'.
Solution: redraw the command line when 'cmdheight' changes when switching
tabpages. (closes #4321)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 May 2019 20:45:05 +0200 |
parents | 3b5d401a58ce |
children | 72afc10bf322 |
line wrap: on
line diff
--- a/src/testdir/test_tabpage.vim +++ b/src/testdir/test_tabpage.vim @@ -1,5 +1,6 @@ " Tests for tabpage +source screendump.vim function Test_tabpage() bw! @@ -552,4 +553,27 @@ func Test_tabs() bw! endfunc +func Test_tabpage_cmdheight() + if !CanRunVimInTerminal() + throw 'Skipped: only works with terminal' + endif + call writefile([ + \ 'set laststatus=2', + \ 'set cmdheight=2', + \ 'tabnew', + \ 'set cmdheight=3', + \ 'tabnext', + \ 'redraw!', + \ 'echo "hello\nthere"', + \ 'tabnext', + \ 'redraw', + \ ], 'XTest_tabpage_cmdheight') + " Check that cursor line is concealed + let buf = RunVimInTerminal('-S XTest_tabpage_cmdheight', {'statusoff': 3}) + call VerifyScreenDump(buf, 'Test_tabpage_cmdheight', {}) + + call StopVimInTerminal(buf) + call delete('XTest_conceal') +endfunc + " vim: shiftwidth=2 sts=2 expandtab