diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-06 11:16:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 11:16:54 +0800 |
commit | eb55eba7e5b422301c50088623e60514a843ab08 (patch) | |
tree | 2fd4f4964889533fc9b72c98ad64d95a6cb70763 /src/nvim/eval.c | |
parent | be90bfbb00436fba68595cc4fd67548df794469d (diff) | |
parent | d4353c3645f294b67f5b30dae9f39de8f99c7413 (diff) | |
download | rneovim-eb55eba7e5b422301c50088623e60514a843ab08.tar.gz rneovim-eb55eba7e5b422301c50088623e60514a843ab08.tar.bz2 rneovim-eb55eba7e5b422301c50088623e60514a843ab08.zip |
Merge pull request #20955 from zeertzjq/vim-8.2.2918
vim-patch:8.2.{2918,2920,2921},9.0.0836: variable can shadow builtin function
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 465d76de69..72df343932 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -1760,6 +1760,9 @@ void set_var_lval(lval_T *lp, char *endp, typval_T *rettv, int copy, const bool semsg(_(e_dictkey), lp->ll_newkey); return; } + if (tv_dict_wrong_func_name(lp->ll_tv->vval.v_dict, rettv, lp->ll_newkey)) { + return; + } // Need to add an item to the Dictionary. di = tv_dict_item_alloc((const char *)lp->ll_newkey); |