vim-patch:7.4.2161 (#6340)

Problem:    Expression test fails without conceal feature.
Solution:   Only check "conceal" with the conceal feature.

7ab6defcaf
This commit is contained in:
raichoo 2017-03-22 21:57:20 +01:00 committed by Justin M. Keyes
parent f7aa1bfde6
commit 44e75eba30
2 changed files with 7 additions and 3 deletions

View File

@ -101,8 +101,12 @@ endfunc
func Test_setmatches()
hi def link 1 Comment
hi def link 2 PreProc
let set = [{"group": 1, "pattern": 2, "id": 3, "priority": 4, "conceal": 5}]
let exp = [{"group": '1', "pattern": '2', "id": 3, "priority": 4, "conceal": '5'}]
let set = [{"group": 1, "pattern": 2, "id": 3, "priority": 4}]
let exp = [{"group": '1', "pattern": '2', "id": 3, "priority": 4}]
if has('conceal')
let set[0]['conceal'] = 5
let exp[0]['conceal'] = '5'
endif
call setmatches(set)
call assert_equal(exp, getmatches())
endfunc

View File

@ -280,7 +280,7 @@ static int included_patches[] = {
2164,
2163,
2162,
// 2161,
2161,
2160,
2159,
2158,