Hi.

----------------------------------------------------
let Cb = function('MyFunc', ["foo", "bar"])
call assert_equal("foo/bar/xxx", Cb("xxx"))
----------------------------------------------------

This works fine. But "call" doesn't work.

----------------------------------------------------
:call Cb("xxx")
test_partial.vim                                              19,14
Error detected while processing function Test_partial_args:
line    2:
E119: Not enough arguments for function: MyFunc
----------------------------------------------------

And I noticed below doesn't work too.

----------------------------------------------------
let dict = {"tr": function('tr', ['hello', 'h', 'H'])}
call assert_equal("Hello", dict.tr())
----------------------------------------------------

Below is a patch. Please take a look.

mattn

https://gist.github.com/mattn/fa3b387ddcb5cb5522d4

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui