mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00: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:
@@ -101,8 +101,12 @@ endfunc
|
|||||||
func Test_setmatches()
|
func Test_setmatches()
|
||||||
hi def link 1 Comment
|
hi def link 1 Comment
|
||||||
hi def link 2 PreProc
|
hi def link 2 PreProc
|
||||||
let set = [{"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, "conceal": '5'}]
|
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 setmatches(set)
|
||||||
call assert_equal(exp, getmatches())
|
call assert_equal(exp, getmatches())
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -280,7 +280,7 @@ static int included_patches[] = {
|
|||||||
2164,
|
2164,
|
||||||
2163,
|
2163,
|
||||||
2162,
|
2162,
|
||||||
// 2161,
|
2161,
|
||||||
2160,
|
2160,
|
||||||
2159,
|
2159,
|
||||||
2158,
|
2158,
|
||||||
|
Reference in New Issue
Block a user