From 2d06bfde29bd3a62fc85823d2aa719ef943bd319 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 23 Jul 2020 17:16:18 +0200 Subject: 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. --- src/ex_eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ex_eval.c') diff --git a/src/ex_eval.c b/src/ex_eval.c index 3fdc208df..f0ffaffdd 100644 --- a/src/ex_eval.c +++ b/src/ex_eval.c @@ -1588,7 +1588,7 @@ ex_catch(exarg_T *eap) if (end != NULL && *end != NUL && !ends_excmd2(end, skipwhite(end + 1))) { - emsg(_(e_trailing)); + semsg(_(e_trailing_arg), end); return; } -- cgit v1.2.1