diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-25 22:57:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-25 22:57:30 +0200 |
commit | 193ffd1d9f4f4d5412ce8d7a46bb2f89d47a56da (patch) | |
tree | 5ee1f8a7ad3ea5cc0621e5cdd5f4b8461298522e /src/testdir/test_highlight.vim | |
parent | adfde115d5c9c9ac4a052874bcf85d2507fe1355 (diff) | |
download | vim-git-193ffd1d9f4f4d5412ce8d7a46bb2f89d47a56da.tar.gz |
patch 8.1.1396: 'wincolor' does not apply to lines below the bufferv8.1.1396
Problem: 'wincolor' does not apply to lines below the buffer.
Solution: Also apply 'wincolor' to the "~" lines and the number column.
Diffstat (limited to 'src/testdir/test_highlight.vim')
-rw-r--r-- | src/testdir/test_highlight.vim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/testdir/test_highlight.vim b/src/testdir/test_highlight.vim index 7c6cc64fc..454845700 100644 --- a/src/testdir/test_highlight.vim +++ b/src/testdir/test_highlight.vim @@ -573,6 +573,30 @@ func Test_cursorline_with_visualmode() call delete('Xtest_cursorline_with_visualmode') endfunc +func Test_wincolor() + if !CanRunVimInTerminal() + return + endif + + call writefile([ + \ 'set cursorline cursorcolumn rnu', + \ 'call setline(1, ["","1111111111","22222222222","3 here 3",""])', + \ 'set wincolor=Pmenu', + \ '/here', + \ ], 'Xtest_wincolor') + let buf = RunVimInTerminal('-S Xtest_wincolor', {'rows': 8}) + call term_wait(buf) + call term_sendkeys(buf, "2G5lvj") + call term_wait(buf) + + call VerifyScreenDump(buf, 'Test_wincolor_01', {}) + + " clean up + call term_sendkeys(buf, "\<Esc>") + call StopVimInTerminal(buf) + call delete('Xtest_wincolor') +endfunc + " This test must come before the Test_cursorline test, as it appears this " defines the Normal highlighting group anyway. func Test_1_highlight_Normalgroup_exists() |