comparison 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
comparison
equal deleted inserted replaced
18794:99f9d7930215 18795:79b689ff168d
618 call term_sendkeys(buf, "\<Esc>") 618 call term_sendkeys(buf, "\<Esc>")
619 call StopVimInTerminal(buf) 619 call StopVimInTerminal(buf)
620 call delete('Xtest_wincolor') 620 call delete('Xtest_wincolor')
621 endfunc 621 endfunc
622 622
623 func Test_wincolor_listchars()
624 CheckScreendump
625
626 let lines =<< trim END
627 call setline(1, ["one","\t\tsome random text enough long to show 'extends' and 'precedes' includingnbsps, preceding tabs and trailing spaces ","three"])
628 set wincolor=Todo
629 set nowrap cole=1 cocu+=n
630 set list lcs=eol:$,tab:>-,space:.,trail:_,extends:>,precedes:<,conceal:*,nbsp:#
631 call matchadd('Conceal', 'text')
632 normal 2G5zl
633 END
634 call writefile(lines, 'Xtest_wincolorlcs')
635 let buf = RunVimInTerminal('-S Xtest_wincolorlcs', {'rows': 8})
636
637 call VerifyScreenDump(buf, 'Test_wincolor_lcs', {})
638
639 " clean up
640 call term_sendkeys(buf, "\<Esc>")
641 call StopVimInTerminal(buf)
642 call delete('Xtest_wincolorlcs')
643 endfunc
644
623 func Test_colorcolumn() 645 func Test_colorcolumn()
624 CheckScreendump 646 CheckScreendump
625 647
626 " check that setting 'colorcolumn' when entering a buffer works 648 " check that setting 'colorcolumn' when entering a buffer works
627 let lines =<< trim END 649 let lines =<< trim END