summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-23 17:16:18 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-23 17:16:18 +0200
commit2d06bfde29bd3a62fc85823d2aa719ef943bd319 (patch)
treedac4bc628fbc1b9414f8901375abe0b9e975a736 /src/ex_cmds.c
parent8930caaa1a283092aca81fdbc3fcf15c7eadb197 (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_cmds.c')
-rw-r--r--src/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 59c562b917..e8e38aa97a 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3816,7 +3816,7 @@ do_sub(exarg_T *eap)
eap->nextcmd = check_nextcmd(cmd);
if (eap->nextcmd == NULL)
{
- emsg(_(e_trailing));
+ semsg(_(e_trailing_arg), cmd);
return;
}
}