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.
diff --git a/src/menu.c b/src/menu.c
index 8a69edd..fd811de 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -289,7 +289,7 @@
}
else if (*map_to != NUL && (unmenu || enable != MAYBE))
{
- emsg(_(e_trailing));
+ semsg(_(e_trailing_arg), map_to);
goto theend;
}
#if defined(FEAT_GUI) && !(defined(FEAT_GUI_GTK) || defined(FEAT_GUI_PHOTON))