diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-06 06:46:30 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-06 08:21:17 +0800 |
commit | a208a8b10eced35916cc1093453f4485bdbccb7a (patch) | |
tree | a42263ce17a2e0b784784819031b9a77a773ce14 /src | |
parent | 1f0bf65ad6ce6df3eedfb013cf9b95aed2a90781 (diff) | |
download | rneovim-a208a8b10eced35916cc1093453f4485bdbccb7a.tar.gz rneovim-a208a8b10eced35916cc1093453f4485bdbccb7a.tar.bz2 rneovim-a208a8b10eced35916cc1093453f4485bdbccb7a.zip |
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 (limited to 'src')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 4b545c0dec..62e006fd57 100644 --- 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; } |