Mercurial > vim
diff src/ex_docmd.c @ 21461:4dfd00f481fb v8.2.1281
patch 8.2.1281: the "trailing characters" error can be hard to understand
Commit: https://github.com/vim/vim/commit/2d06bfde29bd3a62fc85823d2aa719ef943bd319
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 23 17:16:18 2020 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 23 Jul 2020 17:30:03 +0200 |
parents | a422bd80b434 |
children | 126dcb0411ed |
line wrap: on
line diff
--- 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