Add some tests and cleanup.

This commit is contained in:
Michael Ennen
2016-11-11 13:13:55 -07:00
committed by James McCoy
parent 0f681c80e1
commit 5e4eb18eb0
7 changed files with 33 additions and 5 deletions

View File

@@ -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;