0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -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

@@ -9051,7 +9051,7 @@ eval_vars(
return NULL;
}
#else
*errormsg = _("E809: #< is not available without the +eval feature");
*errormsg = _(e_hashsmall_is_not_available_without_the_eval_feature);
return NULL;
#endif
}
@@ -9147,7 +9147,7 @@ eval_vars(
case SPEC_SLNUM: // line in file for ":so" command
if (SOURCING_NAME == NULL || SOURCING_LNUM == 0)
{
*errormsg = _("E842: no line number to use for \"<slnum>\"");
*errormsg = _(e_no_line_number_to_use_for_slnum);
return NULL;
}
sprintf((char *)strbuf, "%ld", SOURCING_LNUM);