Mercurial > vim
diff src/testdir/test_functions.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 | 2029737e6a22 |
children | 7a19c8d6bb9e |
line wrap: on
line diff
--- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -1137,7 +1137,7 @@ func Test_setbufvar_options() wincmd h let wh = winheight('.') let dummy_buf = bufnr('dummy_buf2', v:true) - call setbufvar(dummy_buf, '&buftype', 'nofile') + eval 'nofile'->setbufvar(dummy_buf, '&buftype') execute 'belowright vertical split #' . dummy_buf call assert_equal(wh, winheight('.')) @@ -1413,7 +1413,7 @@ func Test_func_range_with_edit() " is invalid in that buffer. call writefile(['just one line'], 'Xfuncrange2') new - call setline(1, 10->range()) + eval 10->range()->setline(1) write Xfuncrange1 call assert_fails('5,8call EditAnotherFile()', 'E16:')