diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-18 22:42:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-18 22:42:00 +0200 |
commit | b185a4074515f576b420cfc7a5a07f840cf6b51f (patch) | |
tree | e282afc4297490873aa89ef1bfea9b5b394e6b9e /src/vim9compile.c | |
parent | 2bbada811625ee53c7bcdf689dbf409e9975ea8f (diff) | |
download | vim-git-b185a4074515f576b420cfc7a5a07f840cf6b51f.tar.gz |
patch 8.2.1708: Vim9: error message for function has unpritable charactersv8.2.1708
Problem: Vim9: error message for function has unpritable characters.
Solution: use printable_func_name(). (closes #6965)
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index 338fbc639..a70ed5a44 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -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; } |