summaryrefslogtreecommitdiff
path: root/src/dict.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-07 15:28:09 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-07 15:28:09 +0100
commitc3fc75db023f2acd0b82b7eebffd7ed89e8001ed (patch)
treeccd13a21ec12f4b20124bedb7397896471ec8e9a /src/dict.c
parent00385114dbd6a3d59516baa02e1ea86a1e7ee70e (diff)
downloadvim-git-c3fc75db023f2acd0b82b7eebffd7ed89e8001ed.tar.gz
patch 8.2.2480: Vim9: some errors for white space do not show contextv8.2.2480
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dict.c b/src/dict.c
index 260f22985..b40aaef0d 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -970,7 +970,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal)
}
if (vim9script && (*arg)[1] != NUL && !VIM_ISWHITE((*arg)[1]))
{
- semsg(_(e_white_space_required_after_str), ":");
+ semsg(_(e_white_space_required_after_str_str), ":", *arg);
clear_tv(&tvkey);
goto failret;
}
@@ -1012,7 +1012,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal)
{
if (vim9script && (*arg)[1] != NUL && !VIM_ISWHITE((*arg)[1]))
{
- semsg(_(e_white_space_required_after_str), ",");
+ semsg(_(e_white_space_required_after_str_str), ",", *arg);
goto failret;
}
*arg = skipwhite(*arg + 1);