summaryrefslogtreecommitdiff
path: root/src/testdir/test_eval.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-04-24 17:12:33 +0200
committerBram Moolenaar <Bram@vim.org>2014-04-24 17:12:33 +0200
commita4f317df89e662a964197f2d586ac24cf801f14f (patch)
tree5568e2203b9d9b06536284f7ce1311fef3a22bb9 /src/testdir/test_eval.in
parenteccb7fc3158877d93194e6b7c0f7e542b4544137 (diff)
downloadvim-git-a4f317df89e662a964197f2d586ac24cf801f14f.tar.gz
updated for version 7.4.265v7.4.265
Problem: Can't call a global function with "g:" in an expression. Solution: Skip the "g:" when looking up the function.
Diffstat (limited to 'src/testdir/test_eval.in')
-rw-r--r--src/testdir/test_eval.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/testdir/test_eval.in b/src/testdir/test_eval.in
index 4919694be..214a99edb 100644
--- a/src/testdir/test_eval.in
+++ b/src/testdir/test_eval.in
@@ -172,11 +172,13 @@ endfun
: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=???,???