diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-15 15:37:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-15 15:37:20 +0100 |
commit | 24c4d539eed33e8073f8f9fe2bee497bbba935a4 (patch) | |
tree | 5ebe42941efb39c6c274ee165736eaaafddc8edc /src/testdir/test_searchpos.vim | |
parent | a803c7f94070f94b831fdfd1984f288c8b825b5d (diff) | |
download | vim-git-24c4d539eed33e8073f8f9fe2bee497bbba935a4.tar.gz |
patch 7.4.1093v7.4.1093
Problem: Typo in test goes unnoticed.
Solution: Fix the typo. Give error for wrong arguments to cursor().
(partly by Hirohito Higashi) Add a test for cursor().
Diffstat (limited to 'src/testdir/test_searchpos.vim')
-rw-r--r-- | src/testdir/test_searchpos.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_searchpos.vim b/src/testdir/test_searchpos.vim index 4a1e024ce..8dffddc09 100644 --- a/src/testdir/test_searchpos.vim +++ b/src/testdir/test_searchpos.vim @@ -15,10 +15,10 @@ func Test_searchpos() call assert_equal([1, 3, 1], searchpos('\%(\([a-z]\)\|\_.\)\{-}xyz', 'pcW')) " Now with \zs, first match is in column 0, "a" is matched. - call cursor(1. 3) + call cursor(1, 3) call assert_equal([2, 4, 2], searchpos('\%(\([a-z]\)\|\_.\)\{-}\zsxyz', 'pcW')) " With z flag start at cursor column, don't see the "a". - call cursor(1. 3) + call cursor(1, 3) call assert_equal([2, 4, 1], searchpos('\%(\([a-z]\)\|\_.\)\{-}\zsxyz', 'pcWz')) set cpo+=c |