summaryrefslogtreecommitdiffstats
path: root/src/cmdexpand.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-31 22:49:24 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-31 22:49:24 +0000
commit436b5adc9770a2568209dd5ab1f98bd1afc91898 (patch)
tree623dc85ee9a396b16f939f44d38138f882edc229 /src/cmdexpand.c
parentf1474d801bbdb73406dd3d1f931f515f99e86dfa (diff)
patch 8.2.3961: error messages are spread outv8.2.3961
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r--src/cmdexpand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index 73c5a91664..9468beba75 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -2903,7 +2903,7 @@ f_getcompletion(typval_T *argvars, typval_T *rettv)
pat = tv_get_string(&argvars[0]);
if (argvars[1].v_type != VAR_STRING)
{
- semsg(_(e_invarg2), "type must be a string");
+ semsg(_(e_invalid_argument_str), "type must be a string");
return;
}
type = tv_get_string(&argvars[1]);
@@ -2933,7 +2933,7 @@ f_getcompletion(typval_T *argvars, typval_T *rettv)
xpc.xp_context = cmdcomplete_str_to_type(type);
if (xpc.xp_context == EXPAND_NOTHING)
{
- semsg(_(e_invarg2), type);
+ semsg(_(e_invalid_argument_str), type);
return;
}