aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-07 14:09:32 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-07 14:39:19 +0800
commit48051ed62cde6ab572bcd48768fe43740f3cd48c (patch)
treeb016aaf3d9c8cd62d701ebe8f0dbaf17f645bc3a /src/nvim/ex_cmds.c
parentd0686540f56154e269e11eb0cc6cd3eb759f2b77 (diff)
downloadrneovim-48051ed62cde6ab572bcd48768fe43740f3cd48c.tar.gz
rneovim-48051ed62cde6ab572bcd48768fe43740f3cd48c.tar.bz2
rneovim-48051ed62cde6ab572bcd48768fe43740f3cd48c.zip
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. https://github.com/vim/vim/commit/2d06bfde29bd3a62fc85823d2aa719ef943bd319
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 23e7660606..9d1ac185d4 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -3616,7 +3616,7 @@ static int do_sub(exarg_T *eap, proftime_T timeout, long cmdpreview_ns, handle_T
if (*cmd && *cmd != '"') { // if not end-of-line or comment
eap->nextcmd = (char *)check_nextcmd((char_u *)cmd);
if (eap->nextcmd == NULL) {
- emsg(_(e_trailing));
+ semsg(_(e_trailing_arg), cmd);
return 0;
}
}