Mercurial > vim
diff src/userfunc.c @ 26883:7f150a4936f2 v8.2.3970
patch 8.2.3970: error messages are spread out
Commit: https://github.com/vim/vim/commit/74409f62790a93daf0965c71da01ff76aa0fa5a5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 15:58:22 2022 +0000
patch 8.2.3970: 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 | Sat, 01 Jan 2022 17:00:04 +0100 |
parents | 06a137af96f8 |
children | d02d40f0261c |
line wrap: on
line diff
--- a/src/userfunc.c +++ b/src/userfunc.c @@ -1127,7 +1127,7 @@ lambda_function_body( if (!ends_excmd2(*arg, skipwhite(*arg + 1))) { - semsg(_(e_trailing_arg), *arg + 1); + semsg(_(e_trailing_characters_str), *arg + 1); return FAIL; } @@ -4148,7 +4148,7 @@ define_function(exarg_T *eap, char_u *na { if (!ends_excmd(*skipwhite(p))) { - semsg(_(e_trailing_arg), p); + semsg(_(e_trailing_characters_str), p); goto ret_free; } set_nextcmd(eap, p); @@ -4364,7 +4364,7 @@ define_function(exarg_T *eap, char_u *na && (vim9script || eap->cmdidx == CMD_def)) && !eap->skip && !did_emsg) - semsg(_(e_trailing_arg), p); + semsg(_(e_trailing_characters_str), p); /* * Read the body of the function, until "}", ":endfunction" or ":enddef" is @@ -4899,7 +4899,7 @@ ex_delfunction(exarg_T *eap) if (!ends_excmd(*skipwhite(p))) { vim_free(name); - semsg(_(e_trailing_arg), p); + semsg(_(e_trailing_characters_str), p); return; } set_nextcmd(eap, p); @@ -5262,7 +5262,7 @@ ex_call(exarg_T *eap) if (!failed && !aborting()) { emsg_severe = TRUE; - semsg(_(e_trailing_arg), arg); + semsg(_(e_trailing_characters_str), arg); } } else