aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-28 11:39:51 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-10-28 11:44:30 +0800
commitbfdf10d87088ee8094cdbab7cef1cb49dc637663 (patch)
treecb47711b8fecc8ccf6391e893c139a0d77532f72 /src/nvim/eval.c
parent685ff3ee7247c5118fd8ef1c229af60066a4fcb4 (diff)
downloadrneovim-bfdf10d87088ee8094cdbab7cef1cb49dc637663.tar.gz
rneovim-bfdf10d87088ee8094cdbab7cef1cb49dc637663.tar.bz2
rneovim-bfdf10d87088ee8094cdbab7cef1cb49dc637663.zip
vim-patch:8.2.1395: Vim9: no error if declaring a funcref with lower case letter
Problem: Vim9: no error if declaring a funcref with a lower case letter. Solution: Check the name after the type is inferred. Fix confusing name. https://github.com/vim/vim/commit/98b4f145eb89405021e23a4a37db51d60a75a1d0 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 0e4dbeaea6..d6411fb15b 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -1444,7 +1444,7 @@ char *get_lval(char *const name, typval_T *const rettv, lval_T *const lp, const
}
wrong = ((lp->ll_dict->dv_scope == VAR_DEF_SCOPE
&& tv_is_func(*rettv)
- && !var_check_func_name((const char *)key, lp->ll_di == NULL))
+ && var_wrong_func_name((const char *)key, lp->ll_di == NULL))
|| !valid_varname((const char *)key));
if (len != -1) {
key[len] = prevval;