Mercurial > vim
diff src/regexp.c @ 25306:078edc1821bf v8.2.3190
patch 8.2.3190: error messages are spread out
Commit: https://github.com/vim/vim/commit/e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 20 21:07:36 2021 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Jul 2021 21:15:05 +0200 |
parents | 7334bf933510 |
children | 1e6da8364a02 |
line wrap: on
line diff
--- 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