1
0
forked from aniani/vim

patch 8.1.1954: more functions can be used as a method

Problem:    More functions can be used as a method.
Solution:   Allow more functions to be used as a method.
This commit is contained in:
Bram Moolenaar
2019-08-31 22:16:38 +02:00
parent f9f24ce7a0
commit 02b31110d3
10 changed files with 81 additions and 32 deletions

View File

@@ -36,7 +36,7 @@ func Test_eval()
" lua.eval with a string
lua v = vim.eval('"abc"')
call assert_equal('string', luaeval('vim.type(v)'))
call assert_equal('string', 'vim.type(v)'->luaeval())
call assert_equal('abc', luaeval('v'))
" lua.eval with a list