Mercurial > vim
diff src/testdir/test_bufline.vim @ 17994:0dcc2ee838dd v8.1.1993
patch 8.1.1993: more functions can be used as methods
Commit: https://github.com/vim/vim/commit/196b4664432f932625cfb6371dc42c24efe6c203
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 6 21:34:30 2019 +0200
patch 8.1.1993: 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, 06 Sep 2019 21:45:04 +0200 |
parents | 4935244c1128 |
children | c087099e9163 |
line wrap: on
line diff
--- a/src/testdir/test_bufline.vim +++ b/src/testdir/test_bufline.vim @@ -20,7 +20,7 @@ func Test_setbufline_getbufline() let b = bufnr('%') wincmd w call assert_equal(1, setbufline(b, 5, ['x'])) - call assert_equal(1, setbufline(bufnr('$') + 1, 1, ['x'])) + call assert_equal(1, ['x']->setbufline(bufnr('$') + 1, 1)) call assert_equal(0, setbufline(b, 4, ['d', 'e'])) call assert_equal(['c'], b->getbufline(3)) call assert_equal(['d'], getbufline(b, 4))