0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Bram Moolenaar
2020-09-18 22:42:00 +02:00
parent 2bbada8116
commit b185a40745
3 changed files with 48 additions and 2 deletions

View File

@@ -1406,12 +1406,12 @@ generate_CALL(cctx_T *cctx, ufunc_T *ufunc, int pushed_argcount)
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;
}