diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-02-07 18:06:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-02-07 18:06:29 +0100 |
commit | ba98fb54aefada4c36390add4c7dd90b93e7e5bb (patch) | |
tree | b18dcd21c820d42452a935560f3fcee59e700913 /src/dict.c | |
parent | 0123cc1e1422003704cc6941916dd75e61fb7976 (diff) | |
download | vim-git-ba98fb54aefada4c36390add4c7dd90b93e7e5bb.tar.gz |
patch 8.2.2486: Vim9: some errors for white space do not show contextv8.2.2486
Problem: Vim9: some errors for white space do not show context.
Solution: Include the text at the error.
Diffstat (limited to 'src/dict.c')
-rw-r--r-- | src/dict.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dict.c b/src/dict.c index b40aaef0d..b36b2bf6d 100644 --- a/src/dict.c +++ b/src/dict.c @@ -945,7 +945,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal) if (**arg != ':') { if (*skipwhite(*arg) == ':') - semsg(_(e_no_white_space_allowed_before_str), ":"); + semsg(_(e_no_white_space_allowed_before_str_str), ":", *arg); else semsg(_(e_missing_dict_colon), *arg); clear_tv(&tvkey); @@ -1025,7 +1025,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal) if (!had_comma) { if (**arg == ',') - semsg(_(e_no_white_space_allowed_before_str), ","); + semsg(_(e_no_white_space_allowed_before_str_str), ",", *arg); else semsg(_(e_missing_dict_comma), *arg); goto failret; |