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