summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-11 18:37:44 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-11 18:37:44 +0200
commit6ed8819822994512c160006bd1204aa11ae3c494 (patch)
tree171487d99e5cf0a6c7e5333159d98c821064e93e /src/eval.c
parentec28d1516eb8bb5dcaa42de145953a6d49aebb6f (diff)
downloadvim-git-6ed8819822994512c160006bd1204aa11ae3c494.tar.gz
patch 8.1.1319: computing function length name in many placesv8.1.1319
Problem: Computing function length name in many places. Solution: compute name length in call_func().
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eval.c b/src/eval.c
index fe8a8efe7..7df545584 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -765,7 +765,7 @@ eval_expr_typval(typval_T *expr, typval_T *argv, int argc, typval_T *rettv)
s = expr->vval.v_string;
if (s == NULL || *s == NUL)
return FAIL;
- if (call_func(s, (int)STRLEN(s), rettv, argc, argv, NULL,
+ if (call_func(s, -1, rettv, argc, argv, NULL,
0L, 0L, &dummy, TRUE, NULL, NULL) == FAIL)
return FAIL;
}
@@ -776,7 +776,7 @@ eval_expr_typval(typval_T *expr, typval_T *argv, int argc, typval_T *rettv)
s = partial_name(partial);
if (s == NULL || *s == NUL)
return FAIL;
- if (call_func(s, (int)STRLEN(s), rettv, argc, argv, NULL,
+ if (call_func(s, -1, rettv, argc, argv, NULL,
0L, 0L, &dummy, TRUE, partial, NULL) == FAIL)
return FAIL;
}
@@ -1088,7 +1088,7 @@ call_vim_function(
int ret;
rettv->v_type = VAR_UNKNOWN; /* clear_tv() uses this */
- ret = call_func(func, (int)STRLEN(func), rettv, argc, argv, NULL,
+ ret = call_func(func, -1, rettv, argc, argv, NULL,
curwin->w_cursor.lnum, curwin->w_cursor.lnum,
&doesrange, TRUE, NULL, NULL);
if (ret == FAIL)
@@ -7109,7 +7109,7 @@ handle_subscript(
}
else
s = (char_u *)"";
- ret = get_func_tv(s, (int)STRLEN(s), rettv, arg,
+ ret = get_func_tv(s, -1, rettv, arg,
curwin->w_cursor.lnum, curwin->w_cursor.lnum,
&len, evaluate, pt, selfdict);