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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user