Bug with function()

84 views
Skip to first unread message

Christian Brabandt

unread,
Sep 13, 2016, 3:27:37 PM9/13/16
to vim...@vim.org, Bram Moolenaar
Bram,
I think this is a bug:
:echo function('tr')
-> returns tr
:echo function('tr()')
-> errors: E475: Invalid argument: [NULL]
0


Best,
Christian
--
Jeder glaubt gern, was er wünscht, die Dinge aber sind oft anders
beschaffen.
-- Demosthenes

Bram Moolenaar

unread,
Sep 13, 2016, 5:15:29 PM9/13/16
to Christian Brabandt, vim...@vim.org, Bram Moolenaar

Christian Brabandt wrote:

> Bram,
> I think this is a bug:
> :echo function('tr')
> -> returns tr
> :echo function('tr()')
> -> errors: E475: Invalid argument: [NULL]
> 0

You mean that it says NULL? That can be fixed.

--
Women are probably the main cause of free software starvation.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Christian Brabandt

unread,
Sep 14, 2016, 3:06:08 AM9/14/16
to vim...@googlegroups.com
Am 2016-09-13 23:15, schrieb Bram Moolenaar:
> Christian Brabandt wrote:
>
>> Bram,
>> I think this is a bug:
>> :echo function('tr')
>> -> returns tr
>> :echo function('tr()')
>> -> errors: E475: Invalid argument: [NULL]
>> 0
>
> You mean that it says NULL? That can be fixed.

Yes, I meant the NULL. That error message is not really helpful.

Best,
Christian
Reply all
Reply to author
Forward
0 new messages