diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-01 13:23:28 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-01 15:05:10 -0400 |
commit | 7959aaf7811a8b0b5b82b7bc895734911e7a7813 (patch) | |
tree | 825f97fa925b4bdef5d3a68b3b493be2ef72ef16 /src/nvim/testdir | |
parent | b120bb8ea9bdfbb96fb960fda79d05cc656e6071 (diff) | |
download | rneovim-7959aaf7811a8b0b5b82b7bc895734911e7a7813.tar.gz rneovim-7959aaf7811a8b0b5b82b7bc895734911e7a7813.tar.bz2 rneovim-7959aaf7811a8b0b5b82b7bc895734911e7a7813.zip |
vim-patch:8.2.2686: status line is not updated when going to cmdline mode
Problem: Status line is not updated when going to cmdline mode.
Solution: Redraw status lines if 'statusline' is set and going to status
line mode. (based on patch from Justin M. Keyes et al.,
closes vim/vim#8044)
https://github.com/vim/vim/commit/ce0b75711afb3ff260967a0843bca46ec09604b5
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_statusline.vim | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_statusline.vim b/src/nvim/testdir/test_statusline.vim index ce2ef4dcd8..48b7b4f2f1 100644 --- a/src/nvim/testdir/test_statusline.vim +++ b/src/nvim/testdir/test_statusline.vim @@ -440,6 +440,27 @@ func Test_statusline_removed_group() call delete('XTest_statusline') endfunc +func Test_statusline_using_mode() + CheckScreendump + + let lines =<< trim END + set laststatus=2 + let &statusline = '-%{mode()}-' + END + call writefile(lines, 'XTest_statusline') + + let buf = RunVimInTerminal('-S XTest_statusline', {'rows': 5, 'cols': 50}) + call VerifyScreenDump(buf, 'Test_statusline_mode_1', {}) + + call term_sendkeys(buf, ":") + call VerifyScreenDump(buf, 'Test_statusline_mode_2', {}) + + " clean up + call term_sendkeys(buf, "\<CR>") + call StopVimInTerminal(buf) + call delete('XTest_statusline') +endfunc + func Test_statusline_after_split_vsplit() only |