mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.0836: wrong error when using extend() with funcref
Problem: Wrong error when using extend() with funcref. Solution: Better check the variable type. (closes #11468, closes #11455)
This commit is contained in:
@@ -1376,7 +1376,8 @@ get_lval(
|
||||
else
|
||||
prevval = 0; // avoid compiler warning
|
||||
wrong = (lp->ll_dict->dv_scope == VAR_DEF_SCOPE
|
||||
&& rettv->v_type == VAR_FUNC
|
||||
&& (rettv->v_type == VAR_FUNC
|
||||
|| rettv->v_type == VAR_PARTIAL)
|
||||
&& var_wrong_func_name(key, lp->ll_di == NULL))
|
||||
|| !valid_varname(key, -1, TRUE);
|
||||
if (len != -1)
|
||||
|
Reference in New Issue
Block a user