Mercurial > vim
comparison src/testdir/test_window_cmd.vim @ 30134:0211a930d873 v9.0.0403
patch 9.0.0403: 'equalalways' may be off when 'laststatus' is zero
Commit: https://github.com/vim/vim/commit/fd7e60a33ddd83a82da4eb6267f1c12fa926f32b
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Wed Sep 7 14:42:49 2022 +0100
patch 9.0.0403: 'equalalways' may be off when 'laststatus' is zero
Problem: 'equalalways' may be off when 'laststatus' is zero.
Solution: call last_status() before win_equal(). (Luuk van Baal,
closes #11070)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 07 Sep 2022 15:45:05 +0200 |
parents | 13b02c1ea0f7 |
children | bc8ad1c28b51 |
comparison
equal
deleted
inserted
replaced
30133:a118dcb936b1 | 30134:0211a930d873 |
---|---|
1615 " Open a new tab and close everything else to fix this issue. | 1615 " Open a new tab and close everything else to fix this issue. |
1616 tabnew | 1616 tabnew |
1617 tabonly | 1617 tabonly |
1618 endfunc | 1618 endfunc |
1619 | 1619 |
1620 func Test_win_equal_last_status() | |
1621 let save_lines = &lines | |
1622 set lines=20 | |
1623 set splitbelow | |
1624 set laststatus=0 | |
1625 | |
1626 split | split | quit | |
1627 call assert_equal(winheight(1), winheight(2)) | |
1628 | |
1629 let &lines = save_lines | |
1630 set splitbelow& | |
1631 set laststatus& | |
1632 endfunc | |
1633 | |
1634 | |
1620 " vim: shiftwidth=2 sts=2 expandtab | 1635 " vim: shiftwidth=2 sts=2 expandtab |