summaryrefslogtreecommitdiffstats
path: root/src/vim9cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-01 15:58:22 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-01 15:58:22 +0000
commit74409f62790a93daf0965c71da01ff76aa0fa5a5 (patch)
treeece55c806dc6fe451d24af66008ae1444d81d73d /src/vim9cmds.c
parent56200eed62e59ad831f6564dcafe346e6f97ac20 (diff)
patch 8.2.3970: error messages are spread outv8.2.3970
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
Diffstat (limited to 'src/vim9cmds.c')
-rw-r--r--src/vim9cmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vim9cmds.c b/src/vim9cmds.c
index ad54659d82..250c265ff2 100644
--- a/src/vim9cmds.c
+++ b/src/vim9cmds.c
@@ -408,7 +408,7 @@ compile_if(char_u *arg, cctx_T *cctx)
}
if (!ends_excmd2(arg, skipwhite(p)))
{
- semsg(_(e_trailing_arg), p);
+ semsg(_(e_trailing_characters_str), p);
return NULL;
}
if (cctx->ctx_skip == SKIP_YES)
@@ -578,7 +578,7 @@ compile_elseif(char_u *arg, cctx_T *cctx)
if (!ends_excmd2(arg, skipwhite(p)))
{
clear_ppconst(&ppconst);
- semsg(_(e_trailing_arg), p);
+ semsg(_(e_trailing_characters_str), p);
return NULL;
}
if (scope->se_skip_save == SKIP_YES)
@@ -1075,7 +1075,7 @@ compile_while(char_u *arg, cctx_T *cctx)
if (!ends_excmd2(arg, skipwhite(p)))
{
- semsg(_(e_trailing_arg), p);
+ semsg(_(e_trailing_characters_str), p);
return NULL;
}
@@ -2021,7 +2021,7 @@ compile_substitute(char_u *arg, exarg_T *eap, cctx_T *cctx)
|| GA_GROW_FAILS(&cctx->ctx_instr, 1))
{
if (trailing_error)
- semsg(_(e_trailing_arg), cmd);
+ semsg(_(e_trailing_characters_str), cmd);
clear_instr_ga(&cctx->ctx_instr);
cctx->ctx_instr = save_ga;
return NULL;