commit a208a8b10eced35916cc1093453f4485bdbccb7a
parent 1f0bf65ad6ce6df3eedfb013cf9b95aed2a90781
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun, 6 Nov 2022 06:46:30 +0800
vim-patch:8.2.2722: Vim9: crash when using LHS with double index
Problem: Vim9: crash when using LHS with double index.
Solution: Handle lhs_dest which is "dest_expr". (closes vim/vim#8068)
Fix confusing error message for missing dict item.
https://github.com/vim/vim/commit/b9c0cd897ab4ad54f514187e89719c0241393f8b
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
@@ -1757,7 +1757,7 @@ void set_var_lval(lval_T *lp, char *endp, typval_T *rettv, int copy, const bool
// Assign to a List or Dictionary item.
if (lp->ll_newkey != NULL) {
if (op != NULL && *op != '=') {
- semsg(_(e_letwrong), op);
+ semsg(_(e_dictkey), lp->ll_newkey);
return;
}