mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
f7aa1bfde6
commit
44e75eba30
@ -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
|
||||
|
@ -280,7 +280,7 @@ static int included_patches[] = {
|
||||
2164,
|
||||
2163,
|
||||
2162,
|
||||
// 2161,
|
||||
2161,
|
||||
2160,
|
||||
2159,
|
||||
2158,
|
||||
|
Loading…
Reference in New Issue
Block a user