mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 13:58:18 +00:00
vim-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.
2d06bfde29
This commit is contained in:
@@ -1839,7 +1839,7 @@ static void f_eval(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
rettv->v_type = VAR_NUMBER;
|
||||
rettv->vval.v_number = 0;
|
||||
} else if (*s != NUL) {
|
||||
emsg(_(e_trailing));
|
||||
semsg(_(e_trailing_arg), s);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4702,7 +4702,7 @@ static void f_islocked(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
FNE_CHECK_START);
|
||||
if (end != NULL && lv.ll_name != NULL) {
|
||||
if (*end != NUL) {
|
||||
emsg(_(e_trailing));
|
||||
semsg(_(e_trailing_arg), end);
|
||||
} else {
|
||||
if (lv.ll_tv == NULL) {
|
||||
di = find_var(lv.ll_name, lv.ll_name_len, NULL, true);
|
||||
|
Reference in New Issue
Block a user