summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-15 16:33:28 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-15 16:33:28 +0200
commit451c2e3536a3cb77d07faf3cb2b834512e174351 (patch)
treec2dbbf67dc33787ea4e1aaa64baec99b77346ea2 /src/ex_cmds.c
parent53b29e4845857d76ca7df1ff2fd0e03c3eeb82e1 (diff)
patch 8.2.1460: error messages are spread outv8.2.1460
Problem: Error messages are spread out. Solution: Move more messages into errors.h.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 2550f0e30e..c61f575335 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3842,7 +3842,7 @@ ex_substitute(exarg_T *eap)
if (search_regcomp(pat, RE_SUBST, which_pat, SEARCH_HIS, &regmatch) == FAIL)
{
if (subflags.do_error)
- emsg(_(e_invcmd));
+ emsg(_(e_invalid_command));
return;
}
@@ -4816,7 +4816,7 @@ ex_global(exarg_T *eap)
if (search_regcomp(pat, RE_BOTH, which_pat, SEARCH_HIS, &regmatch) == FAIL)
{
- emsg(_(e_invcmd));
+ emsg(_(e_invalid_command));
return;
}