diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-23 17:16:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-23 17:16:18 +0200 |
commit | 2d06bfde29bd3a62fc85823d2aa719ef943bd319 (patch) | |
tree | dac4bc628fbc1b9414f8901375abe0b9e975a736 /src/ex_docmd.c | |
parent | 8930caaa1a283092aca81fdbc3fcf15c7eadb197 (diff) |
patch 8.2.1281: the "trailing characters" error can be hard to understandv8.2.1281
Problem: The "trailing characters" error can be hard to understand.
Solution: Add the trailing characters to the message.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 4f27898a19..bd3de8ff8f 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -2396,7 +2396,7 @@ do_one_cmd( && *ea.arg != '"' && (*ea.arg != '|' || (ea.argt & EX_TRLBAR) == 0)) { // no arguments allowed but there is something - errormsg = _(e_trailing); + errormsg = ex_errmsg(e_trailing_arg, ea.arg); goto doend; } @@ -7725,7 +7725,7 @@ ex_mark(exarg_T *eap) if (*eap->arg == NUL) // No argument? emsg(_(e_argreq)); else if (eap->arg[1] != NUL) // more than one character? - emsg(_(e_trailing)); + semsg(_(e_trailing_arg), eap->arg); else { pos = curwin->w_cursor; // save curwin->w_cursor |