diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-09 21:28:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-09 21:28:14 +0100 |
commit | dbd4316806389e3c2240b48cc6c4d209cb1665fd (patch) | |
tree | 8e2776580d7fb87522c18e640d5b09127f2d1ff1 /src/testdir/test_textprop.vim | |
parent | 3503d7c94a6c8c2a5ca1665d648d0cb81afcc863 (diff) | |
download | vim-git-dbd4316806389e3c2240b48cc6c4d209cb1665fd.tar.gz |
patch 8.1.2279: computation of highlight attributes is too complicatedv8.1.2279
Problem: Computation of highlight attributes is too complicated.
Solution: Simplify the attribute computation and make it more consistent.
(closes #5190) Fix that 'combine' set to zero doesn't work.
Diffstat (limited to 'src/testdir/test_textprop.vim')
-rw-r--r-- | src/testdir/test_textprop.vim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim index b09e1a797..002933d32 100644 --- a/src/testdir/test_textprop.vim +++ b/src/testdir/test_textprop.vim @@ -678,8 +678,9 @@ func Test_textprop_screenshot_various() \ "call prop_type_add('start', {'highlight': 'NumberProp', 'start_incl': 1})", \ "call prop_type_add('end', {'highlight': 'NumberProp', 'end_incl': 1})", \ "call prop_type_add('both', {'highlight': 'NumberProp', 'start_incl': 1, 'end_incl': 1})", - \ "call prop_type_add('background', {'highlight': 'NumberProp', 'combine': 1})", - \ "eval 'background'->prop_type_change({'highlight': 'BackgroundProp'})", + \ "call prop_type_add('background', {'highlight': 'BackgroundProp', 'combine': 0})", + \ "call prop_type_add('backgroundcomb', {'highlight': 'NumberProp', 'combine': 1})", + \ "eval 'backgroundcomb'->prop_type_change({'highlight': 'BackgroundProp'})", \ "call prop_type_add('error', {'highlight': 'UnderlineProp', 'combine': 1})", \ "call prop_add(1, 4, {'end_lnum': 3, 'end_col': 3, 'type': 'long'})", \ "call prop_add(2, 9, {'length': 3, 'type': 'number'})", @@ -688,7 +689,8 @@ func Test_textprop_screenshot_various() \ "call prop_add(3, 7, {'length': 2, 'type': 'start'})", \ "call prop_add(3, 11, {'length': 2, 'type': 'end'})", \ "call prop_add(3, 15, {'length': 2, 'type': 'both'})", - \ "call prop_add(4, 12, {'length': 10, 'type': 'background'})", + \ "call prop_add(4, 6, {'length': 3, 'type': 'background'})", + \ "call prop_add(4, 12, {'length': 10, 'type': 'backgroundcomb'})", \ "call prop_add(4, 17, {'length': 5, 'type': 'error'})", \ "call prop_add(5, 7, {'length': 4, 'type': 'long'})", \ "call prop_add(6, 1, {'length': 8, 'type': 'long'})", |