diff options
| author | Michael Ennen <mike.ennen@gmail.com> | 2016-10-26 21:44:57 -0700 |
|---|---|---|
| committer | James McCoy <jamessan@jamessan.com> | 2016-12-12 10:17:35 -0500 |
| commit | 27b2fb944a4b9bce0f06e7c1f2267949c8edab06 (patch) | |
| tree | 2f5bd7e282b7a2edcf077a7af27b401c9b1f0e34 /src/nvim/testdir | |
| parent | e2258598cacebf3c90bbb8e13789194c417d8dad (diff) | |
| download | rneovim-27b2fb944a4b9bce0f06e7c1f2267949c8edab06.tar.gz rneovim-27b2fb944a4b9bce0f06e7c1f2267949c8edab06.tar.bz2 rneovim-27b2fb944a4b9bce0f06e7c1f2267949c8edab06.zip | |
vim-patch:7.4.1585
Problem: Partial is not recognized everywhere.
Solution: Check for partial in trans_function_name(). (Yasuhiro Matsumoto)
Add a test.
https://github.com/vim/vim/commit/d22a18928ebcb465393da1418bb88204b97badb1
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_partial.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_partial.vim b/src/nvim/testdir/test_partial.vim index 7941ec01c2..75cbfe2f25 100644 --- a/src/nvim/testdir/test_partial.vim +++ b/src/nvim/testdir/test_partial.vim @@ -105,3 +105,15 @@ func Test_script_function_in_dict() let B = s:obj2.clear call assert_equal('bar', B()) endfunc + +func Test_partial_exists() + let F = function('MyFunc') + call assert_true(exists('*F')) + let lF = [F] + call assert_true(exists('*lF[0]')) + + let F = function('MyFunc', ['arg']) + call assert_true(exists('*F')) + let lF = [F] + call assert_true(exists('*lF[0]')) +endfunc |