Mercurial > vim
comparison src/testdir/test_match.vim @ 17837:f71ee7b04f0b v8.1.1915
patch 8.1.1915: more functions can be used as methods
Commit: https://github.com/vim/vim/commit/1a3a89168d61c2fed91cbca812cf1c6983901b79
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 23 22:31:37 2019 +0200
patch 8.1.1915: more functions can be used as methods
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 23 Aug 2019 22:45:04 +0200 |
parents | 0da9bc55c31a |
children | 0cdb6ac20748 |
comparison
equal
deleted
inserted
replaced
17836:a3061757584b | 17837:f71ee7b04f0b |
---|---|
213 \ {'group': 'Search', 'pattern': '4', 'priority': 10, 'id': 4}, | 213 \ {'group': 'Search', 'pattern': '4', 'priority': 10, 'id': 4}, |
214 \ {'group': 'Error', 'id': 5, 'priority': 10, 'pos1': [1, 2, 1], 'pos2': [2, 2, 1]}, | 214 \ {'group': 'Error', 'id': 5, 'priority': 10, 'pos1': [1, 2, 1], 'pos2': [2, 2, 1]}, |
215 \] | 215 \] |
216 call assert_equal(expect, savematches) | 216 call assert_equal(expect, savematches) |
217 | 217 |
218 call clearmatches(winid) | 218 eval winid->clearmatches() |
219 call assert_equal([], getmatches(winid)) | 219 call assert_equal([], getmatches(winid)) |
220 | 220 |
221 call setmatches(savematches, winid) | 221 call setmatches(savematches, winid) |
222 call assert_equal(expect, savematches) | 222 call assert_equal(expect, savematches) |
223 | 223 |