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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user