comparison src/testdir/test_highlight.vim @ 18152:1acc94f17906 v8.1.2071

patch 8.1.2071: when 'wincolor' is set text property changes highlighting Commit: https://github.com/vim/vim/commit/053f712ef20d143818aa07275cf1f4fa55afbf85 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 23 22:17:15 2019 +0200 patch 8.1.2071: when 'wincolor' is set text property changes highlighting Problem: When 'wincolor' is set text property changes highlighting. (Andy Stewart) Solution: Fix combining colors. (closes #4968)
author Bram Moolenaar <Bram@vim.org>
date Mon, 23 Sep 2019 22:30:03 +0200
parents fd75825d06db
children c81370b3ede4
comparison
equal deleted inserted replaced
18151:6b00e9517382 18152:1acc94f17906
593 func Test_wincolor() 593 func Test_wincolor()
594 CheckScreendump 594 CheckScreendump
595 595
596 let lines =<< trim END 596 let lines =<< trim END
597 set cursorline cursorcolumn rnu 597 set cursorline cursorcolumn rnu
598 call setline(1, ["","1111111111","22222222222","3 here 3",""]) 598 call setline(1, ["","1111111111","22222222222","3 here 3","","the cat is out of the bag"])
599 set wincolor=Pmenu 599 set wincolor=Pmenu
600 hi CatLine guifg=green ctermfg=green
601 hi Reverse gui=reverse cterm=reverse
602 syn match CatLine /^the.*/
603 call prop_type_add("foo", {"highlight": "Reverse", "combine": 1})
604 call prop_add(6, 12, {"type": "foo", "end_col": 15})
600 /here 605 /here
601 END 606 END
602 call writefile(lines, 'Xtest_wincolor') 607 call writefile(lines, 'Xtest_wincolor')
603 let buf = RunVimInTerminal('-S Xtest_wincolor', {'rows': 8}) 608 let buf = RunVimInTerminal('-S Xtest_wincolor', {'rows': 8})
604 call term_wait(buf) 609 call term_wait(buf)