0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3959: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.
This commit is contained in:
Bram Moolenaar
2021-12-31 18:49:43 +00:00
parent ef089f50f9
commit 6d0570117a
13 changed files with 122 additions and 45 deletions

View File

@@ -8335,7 +8335,7 @@ ex_mark(exarg_T *eap)
curwin->w_cursor.lnum = eap->line2;
beginline(BL_WHITE | BL_FIX);
if (setmark(*eap->arg) == FAIL) // set mark
emsg(_("E191: Argument must be a letter or forward/backward quote"));
emsg(_(e_argument_must_be_letter_or_forward_backward_quote));
curwin->w_cursor = pos; // restore curwin->w_cursor
}
}
@@ -8426,7 +8426,7 @@ ex_normal(exarg_T *eap)
}
if (ex_normal_busy >= p_mmd)
{
emsg(_("E192: Recursive use of :normal too deep"));
emsg(_(e_recursive_use_of_normal_too_deep));
return;
}
@@ -9062,7 +9062,7 @@ eval_vars(
buf = buflist_findnr(i);
if (buf == NULL)
{
*errormsg = _("E194: No alternate file name to substitute for '#'");
*errormsg = _(e_no_alternate_file_name_to_substitute_for_hash);
return NULL;
}
if (lnump != NULL)