0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -04:00

patch 8.2.1281: the "trailing characters" error can be hard to understand

Problem:    The "trailing characters" error can be hard to understand.
Solution:   Add the trailing characters to the message.
This commit is contained in:
Bram Moolenaar
2020-07-23 17:16:18 +02:00
parent 8930caaa1a
commit 2d06bfde29
13 changed files with 24 additions and 22 deletions

View File

@@ -2141,7 +2141,7 @@ f_eval(typval_T *argvars, typval_T *rettv)
rettv->vval.v_number = 0;
}
else if (*s != NUL)
emsg(_(e_trailing));
semsg(_(e_trailing_arg), s);
}
/*
@@ -5113,7 +5113,7 @@ f_islocked(typval_T *argvars, typval_T *rettv)
if (end != NULL && lv.ll_name != NULL)
{
if (*end != NUL)
emsg(_(e_trailing));
semsg(_(e_trailing_arg), end);
else
{
if (lv.ll_tv == NULL)