Blame SOURCES/7.4.166

d6ba96
To: vim_dev@googlegroups.com
d6ba96
Subject: Patch 7.4.166
d6ba96
Fcc: outbox
d6ba96
From: Bram Moolenaar <Bram@moolenaar.net>
d6ba96
Mime-Version: 1.0
d6ba96
Content-Type: text/plain; charset=UTF-8
d6ba96
Content-Transfer-Encoding: 8bit
d6ba96
------------
d6ba96
d6ba96
Patch 7.4.166
d6ba96
Problem:    Auto-loading a function for code that won't be executed.
d6ba96
Solution:   Do not auto-load when evaluation is off. (Yasuhiro Matsumoto)
d6ba96
Files:	    src/eval.c
d6ba96
d6ba96
d6ba96
*** ../vim-7.4.165/src/eval.c	2014-01-23 20:09:29.523869260 +0100
d6ba96
--- src/eval.c	2014-02-05 22:04:21.110548800 +0100
d6ba96
***************
d6ba96
*** 5159,5165 ****
d6ba96
  	    {
d6ba96
  		/* If "s" is the name of a variable of type VAR_FUNC
d6ba96
  		 * use its contents. */
d6ba96
! 		s = deref_func_name(s, &len, FALSE);
d6ba96
  
d6ba96
  		/* Invoke the function. */
d6ba96
  		ret = get_func_tv(s, len, rettv, arg,
d6ba96
--- 5159,5165 ----
d6ba96
  	    {
d6ba96
  		/* If "s" is the name of a variable of type VAR_FUNC
d6ba96
  		 * use its contents. */
d6ba96
! 		s = deref_func_name(s, &len, !evaluate);
d6ba96
  
d6ba96
  		/* Invoke the function. */
d6ba96
  		ret = get_func_tv(s, len, rettv, arg,
d6ba96
*** ../vim-7.4.165/src/version.c	2014-02-05 22:01:56.690546587 +0100
d6ba96
--- src/version.c	2014-02-05 22:06:18.610550600 +0100
d6ba96
***************
d6ba96
*** 740,741 ****
d6ba96
--- 740,743 ----
d6ba96
  {   /* Add new patch number below this line */
d6ba96
+ /**/
d6ba96
+     166,
d6ba96
  /**/
d6ba96
d6ba96
-- 
d6ba96
hundred-and-one symptoms of being an internet addict:
d6ba96
270. You are subscribed to a mailing list for every piece of software
d6ba96
     you use.
d6ba96
d6ba96
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
d6ba96
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
d6ba96
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
d6ba96
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///