mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
Add some tests and cleanup.
This commit is contained in:

committed by
James McCoy

parent
0f681c80e1
commit
5e4eb18eb0
@@ -9664,7 +9664,7 @@ static void f_function(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
}
|
||||
if (arg_idx > 0) {
|
||||
if (argvars[arg_idx].v_type != VAR_LIST) {
|
||||
EMSG(_("E923: Second argument of function() must be"
|
||||
EMSG(_("E923: Second argument of function() must be "
|
||||
"a list or a dict"));
|
||||
xfree(name);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user