Mercurial > vim
diff src/userfunc.c @ 26857:2aeea8611342 v8.2.3957
patch 8.2.3957: error messages are spread out
Commit: https://github.com/vim/vim/commit/1a9922243a90f213894d5c58cd063465eea3350f
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 31 17:25:48 2021 +0000
patch 8.2.3957: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 31 Dec 2021 18:30:03 +0100 |
parents | 434eaef2ac62 |
children | bce848ec8b1b |
line wrap: on
line diff
--- a/src/userfunc.c +++ b/src/userfunc.c @@ -2360,7 +2360,7 @@ copy_func(char_u *lambda, char_u *global if (fp != NULL) { // TODO: handle ! to overwrite - semsg(_(e_function_str_already_exists_add_excl_to_replace), global); + semsg(_(e_function_str_already_exists_add_bang_to_replace), global); return FAIL; } @@ -4380,7 +4380,7 @@ define_function(exarg_T *eap, char_u *na if (fudi.fd_dict != NULL && fudi.fd_newkey == NULL) emsg(_(e_funcdict)); else if (name != NULL && find_func(name, is_global, NULL) != NULL) - emsg_funcname(e_function_str_already_exists_add_excl_to_replace, name); + emsg_funcname(e_function_str_already_exists_add_bang_to_replace, name); } if (!eap->skip && did_emsg) @@ -4438,7 +4438,7 @@ define_function(exarg_T *eap, char_u *na if (vim9script) emsg_funcname(e_name_already_defined_str, name); else - emsg_funcname(e_function_str_already_exists_add_excl_to_replace, name); + emsg_funcname(e_function_str_already_exists_add_bang_to_replace, name); goto erret; } if (fp->uf_calls > 0)