Try out the following code:
vim -u NONE -c $'function g:.input(...)\nendfunction' \
-c 'echo input("abc")'
. The second command won’t ask you for anything, it will complain about calling
dictionary function without a dictionary.
I guess we really need one standard function for adding a value to a
dictionary, this is the fourth error of that type (
1. let g:.input :: fixed, if I remember its existence
correctly
2. call extend(g:, {'input': :: fixed
3. py vim.bindeval('g:')['input']= :: patch available
(5.) in recent patch to lua interface, fixed). It is not really funny to add
checks for valid (funcref) variable name to every place we want to add
something to a dictionary.
--
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