From 48051ed62cde6ab572bcd48768fe43740f3cd48c Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 7 Aug 2022 14:09:32 +0800 Subject: 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 --- src/nvim/ex_getln.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/ex_getln.c') diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 6240ac6b37..07a0e68884 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -6525,7 +6525,7 @@ void ex_history(exarg_T *eap) histype1 = 0; histype2 = HIST_COUNT - 1; } else { - emsg(_(e_trailing)); + semsg(_(e_trailing_arg), arg); return; } } else { @@ -6535,7 +6535,7 @@ void 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; } -- cgit