Skip to content

Commit 7ab6def

Browse files
committed
patch 7.4.2161
Problem: Expression test fails without conceal feature. Solution: Only check "conceal" with the conceal feature.
1 parent 7dc5e2e commit 7ab6def

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/testdir/test_expr.vim

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,12 @@ endfunc
198198
func Test_setmatches()
199199
hi def link 1 Comment
200200
hi def link 2 PreProc
201-
let set = [{"group": 1, "pattern": 2, "id": 3, "priority": 4, "conceal": 5}]
202-
let exp = [{"group": '1', "pattern": '2', "id": 3, "priority": 4, "conceal": '5'}]
201+
let set = [{"group": 1, "pattern": 2, "id": 3, "priority": 4}]
202+
let exp = [{"group": '1', "pattern": '2', "id": 3, "priority": 4}]
203+
if has('conceal')
204+
let set[0]['conceal'] = 5
205+
let exp[0]['conceal'] = '5'
206+
endif
203207
call setmatches(set)
204208
call assert_equal(exp, getmatches())
205209
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2161,
766768
/**/
767769
2160,
768770
/**/

0 commit comments

Comments
 (0)