Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/testdir/test_highlight.vim +++ b/src/testdir/test_highlight.vim @@ -595,8 +595,13 @@ func Test_wincolor() let lines =<< trim END set cursorline cursorcolumn rnu - call setline(1, ["","1111111111","22222222222","3 here 3",""]) + call setline(1, ["","1111111111","22222222222","3 here 3","","the cat is out of the bag"]) set wincolor=Pmenu + hi CatLine guifg=green ctermfg=green + hi Reverse gui=reverse cterm=reverse + syn match CatLine /^the.*/ + call prop_type_add("foo", {"highlight": "Reverse", "combine": 1}) + call prop_add(6, 12, {"type": "foo", "end_col": 15}) /here END call writefile(lines, 'Xtest_wincolor')