mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
vim-patch:8.0.0004 (#7044)
Problem: A string argument for function() that is not a function name
results in an error message with NULL. (Christian Brabandt)
Solution: Use the argument for the error message.
5582ef1438
This commit is contained in:

committed by
Justin M. Keyes

parent
a76da96e86
commit
24a0d4e122
@@ -418,6 +418,9 @@ func Test_function_with_funcref()
|
|||||||
let s:fref = function(s:f)
|
let s:fref = function(s:f)
|
||||||
call assert_equal(v:t_string, s:fref('x'))
|
call assert_equal(v:t_string, s:fref('x'))
|
||||||
call assert_fails("call function('s:f')", 'E700:')
|
call assert_fails("call function('s:f')", 'E700:')
|
||||||
|
|
||||||
|
call assert_fails("call function('foo()')", 'E475:')
|
||||||
|
call assert_fails("call function('foo()')", 'foo()')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_funcref()
|
func Test_funcref()
|
||||||
|
@@ -725,7 +725,7 @@ static const int included_patches[] = {
|
|||||||
// 7 NA
|
// 7 NA
|
||||||
6,
|
6,
|
||||||
// 5 NA
|
// 5 NA
|
||||||
// 4,
|
4,
|
||||||
// 3,
|
// 3,
|
||||||
2,
|
2,
|
||||||
1,
|
1,
|
||||||
|
Reference in New Issue
Block a user