Merge pull request #4129 from jbradaric/vim-7.4.745

vim-patch:7.4.{745,746,747,748}
This commit is contained in:
Justin M. Keyes
2016-02-01 02:49:27 -05:00
5 changed files with 77 additions and 43 deletions

View File

@@ -89,7 +89,11 @@ describe('063: Test for ":match", "matchadd()" and related functions', function(
execute("call clearmatches()")
execute("call setmatches(ml)")
eq(ml, eval('getmatches()'))
-- Check that "setmatches()" can correctly restore the matches from matchaddpos()
execute("call clearmatches()")
execute("call setmatches(ml)")
eq(ml, eval('getmatches()'))
-- Check that "setmatches()" will not add two matches with the same ID. The
-- expected behaviour (for now) is to add the first match but not the