aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorraichoo <raichoo@googlemail.com>2017-03-22 21:57:20 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-03-22 21:57:20 +0100
commit44e75eba30682007dd17f9a80805a9925a921976 (patch)
tree8c8e9967ce159af621f72b7569953ed5598c6868 /src/nvim/testdir
parentf7aa1bfde6bc3600e4914cf38c777ff7f1ea56ab (diff)
downloadrneovim-44e75eba30682007dd17f9a80805a9925a921976.tar.gz
rneovim-44e75eba30682007dd17f9a80805a9925a921976.tar.bz2
rneovim-44e75eba30682007dd17f9a80805a9925a921976.zip
vim-patch:7.4.2161 (#6340)
Problem: Expression test fails without conceal feature. Solution: Only check "conceal" with the conceal feature. https://github.com/vim/vim/commit/7ab6defcafe017a3ad58580a3e56dab705b1ed8b
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_expr.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_expr.vim b/src/nvim/testdir/test_expr.vim
index ccbdde8244..2541d38d12 100644
--- a/src/nvim/testdir/test_expr.vim
+++ b/src/nvim/testdir/test_expr.vim
@@ -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