mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
Merge pull request #21281 from zeertzjq/vim-8.2.4163
vim-patch:8.2.{4163,4168}
This commit is contained in:
@@ -9,3 +9,7 @@ endfunc
|
|||||||
func foo#addFoo(head)
|
func foo#addFoo(head)
|
||||||
return a:head .. 'foo'
|
return a:head .. 'foo'
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func foo#()
|
||||||
|
return 'empty'
|
||||||
|
endfunc
|
||||||
|
@@ -10,6 +10,9 @@ func Test_autoload_dict_func()
|
|||||||
call assert_equal(1, g:called_foo_bar_echo)
|
call assert_equal(1, g:called_foo_bar_echo)
|
||||||
|
|
||||||
eval 'bar'->g:foo#addFoo()->assert_equal('barfoo')
|
eval 'bar'->g:foo#addFoo()->assert_equal('barfoo')
|
||||||
|
|
||||||
|
" empty name works in legacy script
|
||||||
|
call assert_equal('empty', foo#())
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_source_autoload()
|
func Test_source_autoload()
|
||||||
@@ -17,3 +20,6 @@ func Test_source_autoload()
|
|||||||
source sautest/autoload/sourced.vim
|
source sautest/autoload/sourced.vim
|
||||||
call assert_equal(1, g:loaded_sourced_vim)
|
call assert_equal(1, g:loaded_sourced_vim)
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
|
||||||
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
Reference in New Issue
Block a user