Mercurial > vim
comparison src/testdir/test_messages.vim @ 29702:c43738957bee v9.0.0191
patch 9.0.0191: messages test fails; window size incorrect
Commit: https://github.com/vim/vim/commit/d4cf9fc53e0b1d36e84d28ecd5595a6f102f325e
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 11 14:13:37 2022 +0100
patch 9.0.0191: messages test fails; window size incorrect
Problem: Messages test fails; window size incorrect when 'cmdheight' is
made smaller.
Solution: Properly cleanup after test with cmdheight zero. Resize windows
correctly when 'cmdheight' gets smaller.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 11 Aug 2022 15:15:03 +0200 |
parents | d413dccd4f8a |
children | a6721cafbc74 |
comparison
equal
deleted
inserted
replaced
29701:fb297eb5987b | 29702:c43738957bee |
---|---|
386 call delete('Xtest_fileinfo_after_echo') | 386 call delete('Xtest_fileinfo_after_echo') |
387 call delete('b.txt') | 387 call delete('b.txt') |
388 endfunc | 388 endfunc |
389 | 389 |
390 func Test_cmdheight_zero() | 390 func Test_cmdheight_zero() |
391 enew | |
391 set cmdheight=0 | 392 set cmdheight=0 |
392 set showcmd | 393 set showcmd |
393 redraw! | 394 redraw! |
394 | 395 |
395 echo 'test echo' | 396 echo 'test echo' |
435 botright 10new | 436 botright 10new |
436 call setline(1, range(12)) | 437 call setline(1, range(12)) |
437 7 | 438 7 |
438 call feedkeys(":\"\<C-R>=line('w0')\<CR>\<CR>", "xt") | 439 call feedkeys(":\"\<C-R>=line('w0')\<CR>\<CR>", "xt") |
439 call assert_equal('"1', @:) | 440 call assert_equal('"1', @:) |
441 | |
440 bwipe! | 442 bwipe! |
441 | 443 bwipe! |
442 set cmdheight& | 444 set cmdheight& |
443 set showcmd& | 445 set showcmd& |
446 tabnew | |
447 tabonly | |
444 endfunc | 448 endfunc |
445 | 449 |
446 " vim: shiftwidth=2 sts=2 expandtab | 450 " vim: shiftwidth=2 sts=2 expandtab |