0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4010: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more error messages to errors.h.
This commit is contained in:
Bram Moolenaar
2022-01-05 17:49:15 +00:00
parent d3a117814d
commit 9d00e4a814
31 changed files with 200 additions and 87 deletions

View File

@@ -4635,7 +4635,7 @@ get_syn_options(
#ifdef FEAT_CONCEAL
if (!vim_isprintc_strict(*conceal_char))
{
emsg(_("E844: invalid cchar value"));
emsg(_(e_invalid_cchar_value));
return NULL;
}
#endif
@@ -4785,7 +4785,7 @@ syn_cmd_include(exarg_T *eap, int syncing UNUSED)
*/
if (running_syn_inc_tag >= MAX_SYN_INC_TAG)
{
emsg(_("E847: Too many syntax includes"));
emsg(_(e_too_many_syntax_includes));
return;
}
prev_syn_inc_tag = current_syn_inc_tag;
@@ -5522,7 +5522,7 @@ syn_add_cluster(char_u *name)
len = curwin->w_s->b_syn_clusters.ga_len;
if (len >= MAX_CLUSTER_ID)
{
emsg(_("E848: Too many syntax clusters"));
emsg(_(e_too_many_syntax_clusters));
vim_free(name);
return 0;
}