0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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)
This commit is contained in:
Bram Moolenaar 2014-02-05 22:13:05 +01:00
parent 767568846b
commit f31ecce97e
2 changed files with 3 additions and 1 deletions

View File

@ -5159,7 +5159,7 @@ eval7(arg, rettv, evaluate, want_string)
{ {
/* If "s" is the name of a variable of type VAR_FUNC /* If "s" is the name of a variable of type VAR_FUNC
* use its contents. */ * use its contents. */
s = deref_func_name(s, &len, FALSE); s = deref_func_name(s, &len, !evaluate);
/* Invoke the function. */ /* Invoke the function. */
ret = get_func_tv(s, len, rettv, arg, ret = get_func_tv(s, len, rettv, arg,

View File

@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
166,
/**/ /**/
165, 165,
/**/ /**/