0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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 #8068)
            Fix confusing error message for missing dict item.
This commit is contained in:
Bram Moolenaar
2021-04-05 20:51:00 +02:00
parent 2927c07b0e
commit b9c0cd897a
4 changed files with 61 additions and 31 deletions

View File

@@ -1474,7 +1474,7 @@ set_var_lval(
{
if (op != NULL && *op != '=')
{
semsg(_(e_letwrong), op);
semsg(_(e_dictkey), lp->ll_newkey);
return;
}