diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-31 19:59:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-31 19:59:55 +0000 |
commit | f1474d801bbdb73406dd3d1f931f515f99e86dfa (patch) | |
tree | e69c4f4dcf990b7c13711f8b36e518117c14670e /src/autocmd.c | |
parent | 6d0570117ac86b7979bf249de5741088212d6e17 (diff) | |
download | vim-git-f1474d801bbdb73406dd3d1f931f515f99e86dfa.tar.gz |
patch 8.2.3960: error messages are spread outv8.2.3960
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
Diffstat (limited to 'src/autocmd.c')
-rw-r--r-- | src/autocmd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/autocmd.c b/src/autocmd.c index 81f2a7eb5..94bd49aa6 100644 --- a/src/autocmd.c +++ b/src/autocmd.c @@ -515,9 +515,9 @@ au_del_group(char_u *name) i = au_find_group(name); if (i == AUGROUP_ERROR) // the group doesn't exist - semsg(_("E367: No such group: \"%s\""), name); + semsg(_(e_no_such_group_str), name); else if (i == current_augroup) - emsg(_("E936: Cannot delete the current group")); + emsg(_(e_cannot_delete_current_group)); else { event_T event; @@ -1205,8 +1205,7 @@ do_autocmd_event( if (is_buflocal && (buflocal_nr == 0 || buflist_findnr(buflocal_nr) == NULL)) { - semsg(_("E680: <buffer=%d>: invalid buffer number "), - buflocal_nr); + semsg(_(e_buffer_nr_invalid_buffer_number), buflocal_nr); return FAIL; } |