Mercurial > vim
changeset 22167:740b16b3c80b v8.2.1633
patch 8.2.1633: some error messages are internal but do not use iemsg()
Commit: https://github.com/vim/vim/commit/e83cca291112ea66f49079975e102ee36a47a24e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 7 18:53:21 2020 +0200
patch 8.2.1633: some error messages are internal but do not use iemsg()
Problem: Some error messages are internal but do not use iemsg().
Solution: Use iemsg(). (Dominique Pell?, closes https://github.com/vim/vim/issues/6894)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 07 Sep 2020 19:00:04 +0200 |
parents | d8552f77a4be |
children | 4711aa50fa72 |
files | src/regexp.c src/regexp_bt.c src/regexp_nfa.c src/version.c |
diffstat | 4 files changed, 9 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/regexp.c +++ b/src/regexp.c @@ -2279,7 +2279,7 @@ vim_regsub_both( else if (*s == NUL) // we hit NUL. { if (copy) - emsg(_(e_re_damg)); + iemsg(_(e_re_damg)); goto exit; } else
--- a/src/regexp_bt.c +++ b/src/regexp_bt.c @@ -2293,7 +2293,7 @@ bt_regcomp(char_u *expr, int re_flags) int flags; if (expr == NULL) - EMSG_RET_NULL(_(e_null)); + IEMSG_RET_NULL(_(e_null)); init_class_tab(); @@ -2917,7 +2917,7 @@ do_class: break; default: // Oh dear. Called inappropriately. - emsg(_(e_re_corr)); + iemsg(_(e_re_corr)); #ifdef DEBUG printf("Called regrepeat with op code %d\n", OP(p)); #endif @@ -4099,7 +4099,7 @@ regmatch( break; default: - emsg(_(e_re_corr)); + iemsg(_(e_re_corr)); #ifdef DEBUG printf("Illegal op code %d\n", op); #endif @@ -4499,7 +4499,7 @@ regmatch( { // We get here only if there's trouble -- normally "case END" is // the terminating point. - emsg(_(e_re_corr)); + iemsg(_(e_re_corr)); #ifdef DEBUG printf("Premature EOL\n"); #endif @@ -4649,7 +4649,7 @@ bt_regexec_both( // Be paranoid... if (prog == NULL || line == NULL) { - emsg(_(e_null)); + iemsg(_(e_null)); goto theend; }