aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_match.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-03-24 18:30:35 +0100
committerGitHub <noreply@github.com>2017-03-24 18:30:35 +0100
commit38274051c066ff0a28582aae5c2edf47825d9f57 (patch)
tree19fba05c7d751fd3ee9aaa20b6a65675a6001c3e /src/nvim/testdir/test_match.vim
parenta62ec4eb989f41ace8e6b7f085349a2bce964d68 (diff)
parent7214d0bc846179a862e8d3061d00270a6caa0d7b (diff)
downloadrneovim-38274051c066ff0a28582aae5c2edf47825d9f57.tar.gz
rneovim-38274051c066ff0a28582aae5c2edf47825d9f57.tar.bz2
rneovim-38274051c066ff0a28582aae5c2edf47825d9f57.zip
Merge pull request #6323 from justinmk/vimpatches
Diffstat (limited to 'src/nvim/testdir/test_match.vim')
-rw-r--r--src/nvim/testdir/test_match.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_match.vim b/src/nvim/testdir/test_match.vim
index 9398ef2f27..066bb2f6a1 100644
--- a/src/nvim/testdir/test_match.vim
+++ b/src/nvim/testdir/test_match.vim
@@ -198,6 +198,16 @@ func Test_matchaddpos()
call assert_equal(screenattr(2,2), screenattr(1,10))
call assert_notequal(screenattr(2,2), screenattr(1,11))
+ " Check overlapping pos
+ call clearmatches()
+ call setline(1, ['1234567890', 'NH'])
+ call matchaddpos('Error', [[1,1,5], [1,3,5], [2,2]])
+ redraw!
+ call assert_notequal(screenattr(2,2), 0)
+ call assert_equal(screenattr(2,2), screenattr(1,5))
+ call assert_equal(screenattr(2,2), screenattr(1,7))
+ call assert_notequal(screenattr(2,2), screenattr(1,8))
+
nohl
call clearmatches()
syntax off