diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-01 20:30:40 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-01 20:30:40 +0200 |
commit | 0fef0aeb1ca6c85df0a656a70b6ca49c34563c89 (patch) | |
tree | a13627e5463d6e3aba1ce1c73d42a782efc1abe6 /src/testdir/test_tabpage.vim | |
parent | b731689e85b4153af7edc8f0a6b9f99d36d8b011 (diff) | |
download | vim-git-0fef0aeb1ca6c85df0a656a70b6ca49c34563c89.tar.gz |
patch 8.1.1242: no cmdline redraw when tabpages have different 'cmdheight'v8.1.1242
Problem: No cmdline redraw when tabpages have different 'cmdheight'.
Solution: redraw the command line when 'cmdheight' changes when switching
tabpages. (closes #4321)
Diffstat (limited to 'src/testdir/test_tabpage.vim')
-rw-r--r-- | src/testdir/test_tabpage.vim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/testdir/test_tabpage.vim b/src/testdir/test_tabpage.vim index 2eae3deb5..6b7ef9247 100644 --- 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 |