diff options
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c index c57f6a4a05..84a7b26203 100644 --- a/src/eval.c +++ b/src/eval.c @@ -1366,7 +1366,6 @@ get_lval( if (rettv != NULL && lp->ll_dict->dv_scope != 0) { int prevval; - int wrong; if (len != -1) { @@ -1375,7 +1374,7 @@ get_lval( } else prevval = 0; // avoid compiler warning - wrong = (lp->ll_dict->dv_scope == VAR_DEF_SCOPE + int wrong = (lp->ll_dict->dv_scope == VAR_DEF_SCOPE && (rettv->v_type == VAR_FUNC || rettv->v_type == VAR_PARTIAL) && var_wrong_func_name(key, lp->ll_di == NULL)) |