aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorMichael Ennen <mike.ennen@gmail.com>2016-12-06 22:56:14 -0700
committerMichael Ennen <mike.ennen@gmail.com>2016-12-07 00:37:29 -0700
commit63c46c11062f5c720644d9bb419f42b0a6d837c8 (patch)
tree69627c4db95b1da1b1ff43747b5fcfd169acdc3c /src/nvim/testdir
parent0e99d291699dc5548f891340a4abb1541041b854 (diff)
downloadrneovim-63c46c11062f5c720644d9bb419f42b0a6d837c8.tar.gz
rneovim-63c46c11062f5c720644d9bb419f42b0a6d837c8.tar.bz2
rneovim-63c46c11062f5c720644d9bb419f42b0a6d837c8.zip
vim-patch:8.0.0040
Problem: Whole line highlighting with matchaddpos() does not work. Solution: Check for zero length. (Hirohito Higashi) https://github.com/vim/vim/commit/8507747600bddfd6a68aed057840856bf5548e61
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_match.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_match.vim b/src/nvim/testdir/test_match.vim
index d176bf9a87..7748dee87f 100644
--- a/src/nvim/testdir/test_match.vim
+++ b/src/nvim/testdir/test_match.vim
@@ -191,7 +191,15 @@ func Test_matchaddpos()
call assert_equal(screenattr(2,2), screenattr(1,7))
call assert_notequal(screenattr(2,2), screenattr(1,8))
+ call clearmatches()
+ call matchaddpos('Error', [[1], [2,2]])
+ redraw!
+ call assert_equal(screenattr(2,2), screenattr(1,1))
+ call assert_equal(screenattr(2,2), screenattr(1,10))
+ call assert_notequal(screenattr(2,2), screenattr(1,11))
+
nohl
+ call clearmatches()
syntax off
set hlsearch&
endfunc