1
0
forked from aniani/vim

patch 8.1.0167: lock flag in new dictitem is reset in many places

Problem:    Lock flag in new dictitem is reset in many places.
Solution:   Always reset the lock flag.
This commit is contained in:
Bram Moolenaar
2018-07-08 17:19:02 +02:00
parent e0be167a80
commit c89d4b3530
7 changed files with 7 additions and 16 deletions

View File

@@ -2390,7 +2390,6 @@ ex_function(exarg_T *eap)
/* overwrite existing dict entry */
clear_tv(&fudi.fd_di->di_tv);
fudi.fd_di->di_tv.v_type = VAR_FUNC;
fudi.fd_di->di_tv.v_lock = 0;
fudi.fd_di->di_tv.vval.v_string = vim_strsave(name);
/* behave like "dict" was used */