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

@@ -148,9 +148,9 @@ search_regcomp(
if (spats[i].pat == NULL) // pattern was never defined
{
if (pat_use == RE_SUBST)
emsg(_(e_nopresub));
emsg(_(e_no_previous_substitute_regular_expression));
else
emsg(_(e_noprevre));
emsg(_(e_no_previous_regular_expression));
rc_did_emsg = TRUE;
return FAIL;
}
@@ -1323,7 +1323,7 @@ do_search(
searchstr = spats[RE_SUBST].pat;
if (searchstr == NULL)
{
emsg(_(e_noprevre));
emsg(_(e_no_previous_regular_expression));
retval = 0;
goto end_do_search;
}