Skip to content

Commit 182a819

Browse files
committed
updated for version 7.4.166
Problem: Auto-loading a function for code that won't be executed. Solution: Do not auto-load when evaluation is off. (Yasuhiro Matsumoto)
1 parent 36954e5 commit 182a819

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5159,7 +5159,7 @@ eval7(arg, rettv, evaluate, want_string)
51595159
{
51605160
/* If "s" is the name of a variable of type VAR_FUNC
51615161
* use its contents. */
5162-
s = deref_func_name(s, &len, FALSE);
5162+
s = deref_func_name(s, &len, !evaluate);
51635163

51645164
/* Invoke the function. */
51655165
ret = get_func_tv(s, len, rettv, arg,

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
166,
741743
/**/
742744
165,
743745
/**/

0 commit comments

Comments
 (0)