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