0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.3987: 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-02 21:26:16 +00:00
parent b09feaa86e
commit 1d423ef75f
19 changed files with 237 additions and 85 deletions

View File

@@ -1017,7 +1017,7 @@ ex_if(exarg_T *eap)
cstack_T *cstack = eap->cstack;
if (cstack->cs_idx == CSTACK_LEN - 1)
eap->errmsg = _("E579: :if nesting too deep");
eap->errmsg = _(e_if_nesting_too_deep);
else
{
enter_block(cstack);
@@ -1111,10 +1111,10 @@ ex_else(exarg_T *eap)
{
if (eap->cmdidx == CMD_else)
{
eap->errmsg = _("E583: multiple :else");
eap->errmsg = _(e_multiple_else);
return;
}
eap->errmsg = _("E584: :elseif after :else");
eap->errmsg = _(e_elseif_after_else);
skip = TRUE;
}
@@ -1180,7 +1180,7 @@ ex_while(exarg_T *eap)
cstack_T *cstack = eap->cstack;
if (cstack->cs_idx == CSTACK_LEN - 1)
eap->errmsg = _("E585: :while/:for nesting too deep");
eap->errmsg = _(e_while_for_nesting_too_deep);
else
{
/*
@@ -1465,7 +1465,7 @@ ex_block(exarg_T *eap)
cstack_T *cstack = eap->cstack;
if (cstack->cs_idx == CSTACK_LEN - 1)
eap->errmsg = _("E579: block nesting too deep");
eap->errmsg = _(e_block_nesting_too_deep);
else
{
enter_block(cstack);