1
0
forked from aniani/vim

patch 8.1.1987: more functions can be used as methods

Problem:    More functions can be used as methods.
Solution:   Make various functions usable as a method.
This commit is contained in:
Bram Moolenaar
2019-09-04 22:29:14 +02:00
parent a5a7882ea4
commit a0d1fef4eb
8 changed files with 99 additions and 41 deletions

View File

@@ -75,7 +75,7 @@ func Test_readfile_binary()
call setline(1, ['one', 'two', 'three'])
setlocal ff=dos
write XReadfile
let lines = readfile('XReadfile')
let lines = 'XReadfile'->readfile()
call assert_equal(['one', 'two', 'three'], lines)
let lines = readfile('XReadfile', '', 2)
call assert_equal(['one', 'two'], lines)