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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user