1
0
forked from aniani/vim

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:
Bram Moolenaar
2021-07-20 21:07:36 +02:00
parent 9fa5dabedc
commit e29a27f6f8
29 changed files with 127 additions and 98 deletions

View File

@@ -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