patch 8.2.1473: items in a list given to :const can still be modified
Problem: Items in a list given to :const can still be modified.
Solution: Work like ":lockvar! name" but don't lock referenced items.
Make locking a blob work.
diff --git a/src/eval.c b/src/eval.c
index 3c4a8c5..c800139 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1218,6 +1218,8 @@
semsg(_(e_letwrong), op);
return;
}
+ if (var_check_lock(lp->ll_blob->bv_lock, lp->ll_name, FALSE))
+ return;
if (lp->ll_range && rettv->v_type == VAR_BLOB)
{