0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 7.4.2161

Problem:    Expression test fails without conceal feature.
Solution:   Only check "conceal" with the conceal feature.
This commit is contained in:
Bram Moolenaar
2016-08-05 22:51:13 +02:00
parent 7dc5e2e486
commit 7ab6defcaf
2 changed files with 8 additions and 2 deletions

View File

@@ -198,8 +198,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

@@ -763,6 +763,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2161,
/**/
2160,
/**/