summaryrefslogtreecommitdiff
path: root/src/regexp.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/regexp.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/regexp.c')
-rw-r--r--src/regexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regexp.c b/src/regexp.c
index ceeb899ad..ee485a3ab 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -7423,7 +7423,7 @@ vim_regsub_both(
if (expr->v_type == VAR_FUNC)
{
s = expr->vval.v_string;
- call_func(s, (int)STRLEN(s), &rettv,
+ call_func(s, -1, &rettv,
1, argv, fill_submatch_list,
0L, 0L, &dummy, TRUE, NULL, NULL);
}
@@ -7432,7 +7432,7 @@ vim_regsub_both(
partial_T *partial = expr->vval.v_partial;
s = partial_name(partial);
- call_func(s, (int)STRLEN(s), &rettv,
+ call_func(s, -1, &rettv,
1, argv, fill_submatch_list,
0L, 0L, &dummy, TRUE, partial, NULL);
}