From ba98fb54aefada4c36390add4c7dd90b93e7e5bb Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 7 Feb 2021 18:06:29 +0100 Subject: patch 8.2.2486: Vim9: some errors for white space do not show context Problem: Vim9: some errors for white space do not show context. Solution: Include the text at the error. --- src/list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/list.c') diff --git a/src/list.c b/src/list.c index c93a66d81..4d33aa6e0 100644 --- a/src/list.c +++ b/src/list.c @@ -1328,7 +1328,8 @@ eval_list(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int do_error) if (do_error) { if (**arg == ',') - semsg(_(e_no_white_space_allowed_before_str), ","); + semsg(_(e_no_white_space_allowed_before_str_str), + ",", *arg); else semsg(_("E696: Missing comma in List: %s"), *arg); } -- cgit v1.2.1