aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJurica Bradaric <jbradaric@gmail.com>2016-01-30 11:33:20 +0100
committerJurica Bradaric <jbradaric@gmail.com>2016-01-30 12:16:32 +0100
commitf8ad215d25e6bbaafbb309b9d844209b78eb6d48 (patch)
tree21cf9adbfa6479f4cbfaf75067c99f7661468b08 /test
parent8f22031708b351ec5bb73952e6afc39b07a72ae2 (diff)
downloadrneovim-f8ad215d25e6bbaafbb309b9d844209b78eb6d48.tar.gz
rneovim-f8ad215d25e6bbaafbb309b9d844209b78eb6d48.tar.bz2
rneovim-f8ad215d25e6bbaafbb309b9d844209b78eb6d48.zip
vim-patch:7.4.745
Problem: The entries added by matchaddpos() are returned by getmatches() but can't be set with setmatches(). (Lcd) Solution: Fix setmatches(). (Christian Brabandt) https://github.com/vim/vim/commit/0fce4257727f9d75e488963b73e407d31dd46546
Diffstat (limited to 'test')
-rw-r--r--test/functional/legacy/063_match_and_matchadd_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/legacy/063_match_and_matchadd_spec.lua b/test/functional/legacy/063_match_and_matchadd_spec.lua
index a354d4d328..23b4f4551b 100644
--- a/test/functional/legacy/063_match_and_matchadd_spec.lua
+++ b/test/functional/legacy/063_match_and_matchadd_spec.lua
@@ -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