Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
16476:9f2336fa44b9 | 16477:8cc31b1b1d23 |
---|---|
1 " Tests for tabpage | 1 " Tests for tabpage |
2 | 2 |
3 source screendump.vim | |
3 | 4 |
4 function Test_tabpage() | 5 function Test_tabpage() |
5 bw! | 6 bw! |
6 " Simple test for opening and closing a tab page | 7 " Simple test for opening and closing a tab page |
7 tabnew | 8 tabnew |
550 | 551 |
551 1tabonly! | 552 1tabonly! |
552 bw! | 553 bw! |
553 endfunc | 554 endfunc |
554 | 555 |
556 func Test_tabpage_cmdheight() | |
557 if !CanRunVimInTerminal() | |
558 throw 'Skipped: only works with terminal' | |
559 endif | |
560 call writefile([ | |
561 \ 'set laststatus=2', | |
562 \ 'set cmdheight=2', | |
563 \ 'tabnew', | |
564 \ 'set cmdheight=3', | |
565 \ 'tabnext', | |
566 \ 'redraw!', | |
567 \ 'echo "hello\nthere"', | |
568 \ 'tabnext', | |
569 \ 'redraw', | |
570 \ ], 'XTest_tabpage_cmdheight') | |
571 " Check that cursor line is concealed | |
572 let buf = RunVimInTerminal('-S XTest_tabpage_cmdheight', {'statusoff': 3}) | |
573 call VerifyScreenDump(buf, 'Test_tabpage_cmdheight', {}) | |
574 | |
575 call StopVimInTerminal(buf) | |
576 call delete('XTest_conceal') | |
577 endfunc | |
578 | |
555 " vim: shiftwidth=2 sts=2 expandtab | 579 " vim: shiftwidth=2 sts=2 expandtab |