0
0
mirror of https://github.com/vim/vim.git synced 2025-10-29 09:37:35 -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

@@ -55,7 +55,7 @@ match_add(
{
if (cur->id == id)
{
semsg(_("E801: ID already taken: %d"), id);
semsg(_(e_id_already_taken_nr), id);
return -1;
}
cur = cur->next;
@@ -233,8 +233,7 @@ match_delete(win_T *wp, int id, int perr)
if (id < 1)
{
if (perr == TRUE)
semsg(_("E802: Invalid ID: %d (must be greater than or equal to 1)"),
id);
semsg(_(e_invalid_id_nr_must_be_greater_than_or_equal_to_one), id);
return -1;
}
while (cur != NULL && cur->id != id)
@@ -245,7 +244,7 @@ match_delete(win_T *wp, int id, int perr)
if (cur == NULL)
{
if (perr == TRUE)
semsg(_("E803: ID not found: %d"), id);
semsg(_(e_id_not_found_nr), id);
return -1;
}
if (cur == prev)