patch 8.2.1708: Vim9: error message for function has unpritable characters
Problem: Vim9: error message for function has unpritable characters.
Solution: use printable_func_name(). (closes #6965)
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 338fbc6..a70ed5a 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -1406,12 +1406,12 @@
RETURN_OK_IF_SKIP(cctx);
if (argcount > regular_args && !has_varargs(ufunc))
{
- semsg(_(e_toomanyarg), ufunc->uf_name);
+ semsg(_(e_toomanyarg), printable_func_name(ufunc));
return FAIL;
}
if (argcount < regular_args - ufunc->uf_def_args.ga_len)
{
- semsg(_(e_toofewarg), ufunc->uf_name);
+ semsg(_(e_toofewarg), printable_func_name(ufunc));
return FAIL;
}