diff options
Diffstat (limited to 'src/dict.c')
-rw-r--r-- | src/dict.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dict.c b/src/dict.c index 311b0038d1..5581a5571b 100644 --- a/src/dict.c +++ b/src/dict.c @@ -929,6 +929,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal) if (**arg != ']') { emsg(_(e_missing_matching_bracket_after_dict_key)); + clear_tv(&tvkey); return FAIL; } ++*arg; |