updated for version 7.4.265
Problem: Can't call a global function with "g:" in an expression.
Solution: Skip the "g:" when looking up the function.
diff --git a/src/testdir/test_eval.in b/src/testdir/test_eval.in
index 4919694..214a99e 100644
--- a/src/testdir/test_eval.in
+++ b/src/testdir/test_eval.in
@@ -172,11 +172,13 @@
:endtry
:"
:" function name starting with/without "g:", buffer-local funcref.
-:function! g:Foo()
-: $put ='called Foo()'
+:function! g:Foo(n)
+: $put ='called Foo(' . a:n . ')'
:endfunction
:let b:my_func = function('Foo')
-:call b:my_func()
+:call b:my_func(1)
+:echo g:Foo(2)
+:echo Foo(3)
:"
:/^start:/+1,$wq! test.out
:" vim: et ts=4 isk-=\: fmr=???,???