Kent Sibilev wrote: > > > > > On Wednesday, March 16, 2016 at 5:52:38 PM UTC-4, Bram Moolenaar > > > > > wrote: > > > > > > Patch 7.4.1582 > > > > > > Problem: Get E923 when using function(dict.func, [], dict). > > > > > > (Kent Sibilev) > > > > > > Storing a function with a dict in a variable drops the > > > > > > dict if the > > > > > > function is script-local. > > > > > > Solution: Translate the function name. Use dict arg if present. > > > > > > Files: src/eval.c, src/testdir/test_partial.vim > > > > > > > > > > > > > > > > > > > > > > This change introduced another bug: > > > > > > > > > > function! s:MyFunc(bang, buffer) > > > > > echo a:bang . a:buffer > > > > > endfunction > > > > > command! -bang -complete=buffer -nargs=? MyFunc call > > > > > s:MyFunc('<bang>', '<args>') > > > > > command! -bang -complete=buffer -nargs=? MyFuncBug call > > > > > <SID>MyFunc('<bang>', '<args>') > > > > > > > > > > > > > > > Calling MyFunc command works fine. Calling MyFuncBug command triggers > > > > > E116 error. > > > > > > > > I cannot reproduce that problem. Not sure if your situation is > > > > different or a later patch fixed it. > > > > > > > > -- > > > > > > Hm, :version says I'm running 1-1586 and I can consistently reproduce > > > it. Strange. > > > > What is the command you give then? Does it matter if you type it or put > > it in the same script as s:MyFunc()? > > > > -- > > When I execute MyFunc command, it works: > > :MyFunc /tmp > /tmp > > When I execute MyFuncBug command, it produces an error: > > :MyFuncBug /tmp > E116: Invalid arguments for function <SNR>164_MyFunc
Still can't reproduce it. Can you start with "vim -u NONE" to rule out other plugins? -- hundred-and-one symptoms of being an internet addict: 73. You give your dog used motherboards instead of bones /// Bram Moolenaar -- b...@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 /// -- -- 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.