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/quickfix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/quickfix.c') diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 9b46fad67a..99129bd15e 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3120,7 +3120,7 @@ void qf_list(exarg_T *eap) int idx1 = 1; int idx2 = -1; if (!get_list_range((char_u **)&arg, &idx1, &idx2) || *arg != NUL) { - emsg(_(e_trailing)); + semsg(_(e_trailing_arg), arg); return; } qf_list_T *qfl = qf_get_curlist(qi); -- cgit