summaryrefslogtreecommitdiffstats
path: root/src/autocmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-31 18:49:43 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-31 18:49:43 +0000
commit6d0570117ac86b7979bf249de5741088212d6e17 (patch)
tree225e3162570358ed40ac31407ec965d2a560d8bf /src/autocmd.c
parentef089f50f9d6685c7a0ab94f9133576d7beec32b (diff)
patch 8.2.3959: error messages are spread outv8.2.3959
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
Diffstat (limited to 'src/autocmd.c')
-rw-r--r--src/autocmd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/autocmd.c b/src/autocmd.c
index 9b6a5d074b..81f2a7eb56 100644
--- a/src/autocmd.c
+++ b/src/autocmd.c
@@ -687,7 +687,7 @@ find_end_event(
{
if (arg[1] && !VIM_ISWHITE(arg[1]))
{
- semsg(_("E215: Illegal character after *: %s"), arg);
+ semsg(_(e_illegal_character_after_star_str), arg);
return NULL;
}
pat = arg + 1;
@@ -699,9 +699,9 @@ find_end_event(
if ((int)event_name2nr(pat, &p) >= NUM_EVENTS)
{
if (have_group)
- semsg(_("E216: No such event: %s"), pat);
+ semsg(_(e_no_such_event_str), pat);
else
- semsg(_("E216: No such group or event: %s"), pat);
+ semsg(_(e_no_such_group_or_event_str), pat);
return NULL;
}
}
@@ -1329,7 +1329,7 @@ do_doautocmd(
if (*arg == '*')
{
- emsg(_("E217: Can't execute autocommands for ALL events"));
+ emsg(_(e_cant_execute_autocommands_for_all_events));
return FAIL;
}
@@ -1942,7 +1942,7 @@ apply_autocmds_group(
*/
if (nesting == 10)
{
- emsg(_("E218: autocommand nesting too deep"));
+ emsg(_(e_autocommand_nesting_too_deep));
goto BYPASS_AU;
}