mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.3190: error messages are spread out
Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
This commit is contained in:
@@ -1359,7 +1359,7 @@ prog_magic_wrong(void)
|
||||
|
||||
if (UCHARAT(((bt_regprog_T *)prog)->program) != REGMAGIC)
|
||||
{
|
||||
emsg(_(e_re_corr));
|
||||
emsg(_(e_corrupted_regexp_program));
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
@@ -1982,7 +1982,7 @@ vim_regsub_both(
|
||||
// Be paranoid...
|
||||
if ((source == NULL && expr == NULL) || dest == NULL)
|
||||
{
|
||||
emsg(_(e_null));
|
||||
emsg(_(e_null_argument));
|
||||
return 0;
|
||||
}
|
||||
if (prog_magic_wrong())
|
||||
@@ -2289,7 +2289,7 @@ vim_regsub_both(
|
||||
else if (*s == NUL) // we hit NUL.
|
||||
{
|
||||
if (copy)
|
||||
iemsg(_(e_re_damg));
|
||||
iemsg(_(e_damaged_match_string));
|
||||
goto exit;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user