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/regexp.c | |
parent | 9fa5dabedc4ed5af85773413e91c2fdbe4cb9f0a (diff) | |
download | vim-git-e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3.tar.gz |
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/regexp.c')
-rw-r--r-- | src/regexp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regexp.c b/src/regexp.c index 805056e3e..5a17d24e7 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -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 |