summaryrefslogtreecommitdiff
path: root/src/evalvars.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-06-27 22:03:33 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-27 22:03:33 +0200
commit108010aa4720ef023a8ac59004fc0f2bc11125af (patch)
tree831741a42644a86ee0d74679361f74cc27861eaa /src/evalvars.c
parentd887297ad0164516dd52cdab0308c3626337d124 (diff)
downloadvim-git-108010aa4720ef023a8ac59004fc0f2bc11125af.tar.gz
patch 8.2.3069: error messages are spread outv8.2.3069
Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
Diffstat (limited to 'src/evalvars.c')
-rw-r--r--src/evalvars.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/evalvars.c b/src/evalvars.c
index dc66eb691..1b3d1f6b1 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -1334,7 +1334,7 @@ ex_let_one(
semsg(_(e_letwrong), op);
else if (endchars != NULL
&& vim_strchr(endchars, *skipwhite(arg)) == NULL)
- emsg(_(e_letunexp));
+ emsg(_(e_unexpected_characters_in_let));
else if (!check_secure())
{
c1 = name[len];
@@ -1379,7 +1379,7 @@ ex_let_one(
p = find_option_end(&arg, &opt_flags);
if (p == NULL || (endchars != NULL
&& vim_strchr(endchars, *skipwhite(p)) == NULL))
- emsg(_(e_letunexp));
+ emsg(_(e_unexpected_characters_in_let));
else
{
long n = 0;
@@ -1481,7 +1481,7 @@ ex_let_one(
semsg(_(e_letwrong), op);
else if (endchars != NULL
&& vim_strchr(endchars, *skipwhite(arg + 1)) == NULL)
- emsg(_(e_letunexp));
+ emsg(_(e_unexpected_characters_in_let));
else
{
char_u *ptofree = NULL;
@@ -1520,7 +1520,7 @@ ex_let_one(
{
if (endchars != NULL && vim_strchr(endchars,
*skipwhite(lv.ll_name_end)) == NULL)
- emsg(_(e_letunexp));
+ emsg(_(e_unexpected_characters_in_let));
else
{
set_var_lval(&lv, p, tv, copy, flags, op, var_idx);