summaryrefslogtreecommitdiff
path: root/src/cmdhist.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/cmdhist.c
parent8930caaa1a283092aca81fdbc3fcf15c7eadb197 (diff)
downloadvim-git-2d06bfde29bd3a62fc85823d2aa719ef943bd319.tar.gz
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/cmdhist.c')
-rw-r--r--src/cmdhist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmdhist.c b/src/cmdhist.c
index d708535ff..69c83c0b5 100644
--- a/src/cmdhist.c
+++ b/src/cmdhist.c
@@ -705,7 +705,7 @@ ex_history(exarg_T *eap)
else
{
*end = i;
- emsg(_(e_trailing));
+ semsg(_(e_trailing_arg), arg);
return;
}
}
@@ -717,7 +717,7 @@ ex_history(exarg_T *eap)
end = arg;
if (!get_list_range(&end, &hisidx1, &hisidx2) || *end != NUL)
{
- emsg(_(e_trailing));
+ semsg(_(e_trailing_arg), end);
return;
}