Mercurial > vim
diff src/testdir/test_highlight.vim @ 18795:79b689ff168d v8.1.2386
patch 8.1.2386: 'wincolor' is not used for 'listchars'
Commit: https://github.com/vim/vim/commit/42e931b0f52679d51de1a3832d1f2481512408fb
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 4 19:08:50 2019 +0100
patch 8.1.2386: 'wincolor' is not used for 'listchars'
Problem: 'wincolor' is not used for 'listchars'.
Solution: Combine the colors. (closes https://github.com/vim/vim/issues/5308)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Dec 2019 19:15:04 +0100 |
parents | e9b2ade1adbd |
children | 04e1a025ef00 |
line wrap: on
line diff
--- a/src/testdir/test_highlight.vim +++ b/src/testdir/test_highlight.vim @@ -620,6 +620,28 @@ func Test_wincolor() call delete('Xtest_wincolor') endfunc +func Test_wincolor_listchars() + CheckScreendump + + let lines =<< trim END + call setline(1, ["one","\t\tsome random text enough long to show 'extends' and 'precedes' includingnbsps, preceding tabs and trailing spaces ","three"]) + set wincolor=Todo + set nowrap cole=1 cocu+=n + set list lcs=eol:$,tab:>-,space:.,trail:_,extends:>,precedes:<,conceal:*,nbsp:# + call matchadd('Conceal', 'text') + normal 2G5zl + END + call writefile(lines, 'Xtest_wincolorlcs') + let buf = RunVimInTerminal('-S Xtest_wincolorlcs', {'rows': 8}) + + call VerifyScreenDump(buf, 'Test_wincolor_lcs', {}) + + " clean up + call term_sendkeys(buf, "\<Esc>") + call StopVimInTerminal(buf) + call delete('Xtest_wincolorlcs') +endfunc + func Test_colorcolumn() CheckScreendump