diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-01 21:47:35 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-02 22:31:55 -0400 |
| commit | 25513049b3c3f9276dfa560ef0920f3ed6cc5f2f (patch) | |
| tree | 999ab47630e6b3b393a4a518aae470eb5f88008b /src/nvim/testdir | |
| parent | 72914cd7f21570a725fdace9c9fe2b171ec4c107 (diff) | |
| download | rneovim-25513049b3c3f9276dfa560ef0920f3ed6cc5f2f.tar.gz rneovim-25513049b3c3f9276dfa560ef0920f3ed6cc5f2f.tar.bz2 rneovim-25513049b3c3f9276dfa560ef0920f3ed6cc5f2f.zip | |
vim-patch:8.2.1780: statusline not updated when splitting windows
Problem: Statusline not updated when splitting windows.
Solution: Call status_redraw_all(). (Jason Franklin, closes vim/vim#5496)
https://github.com/vim/vim/commit/668008be66326ed9e5b1122abede34ed3d2de2d8
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_statusline.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_statusline.vim b/src/nvim/testdir/test_statusline.vim index 8c81ec3431..7efd181d04 100644 --- a/src/nvim/testdir/test_statusline.vim +++ b/src/nvim/testdir/test_statusline.vim @@ -412,3 +412,22 @@ func Test_statusline_removed_group() call StopVimInTerminal(buf) call delete('XTest_statusline') endfunc + +func Test_statusline_after_split_vsplit() + only + + " Make the status line of each window show the window number. + set ls=2 stl=%{winnr()} + + split | redraw + vsplit | redraw + + " The status line of the third window should read '3' here. + call assert_equal('3', nr2char(screenchar(&lines - 1, 1))) + + only + set ls& stl& +endfunc + + +" vim: shiftwidth=2 sts=2 expandtab |