diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-20 21:07:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-20 21:07:36 +0200 |
commit | e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3 (patch) | |
tree | eb8bd787e936db02a1617fb033aed2e224b3bbd3 /src/search.c | |
parent | 9fa5dabedc4ed5af85773413e91c2fdbe4cb9f0a (diff) |
patch 8.2.3190: error messages are spread outv8.2.3190
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/search.c b/src/search.c index 483265e29d..0034e1e9ff 100644 --- a/src/search.c +++ b/src/search.c @@ -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; } |