Karsten Hopp f301e8
To: vim-dev@vim.org
Karsten Hopp f301e8
Subject: Patch 7.0.008
Karsten Hopp f301e8
Fcc: outbox
Karsten Hopp f301e8
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp f301e8
Mime-Version: 1.0
Karsten Hopp f301e8
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp f301e8
Content-Transfer-Encoding: 8bit
Karsten Hopp f301e8
------------
Karsten Hopp f301e8
Karsten Hopp f301e8
Patch 7.0.008
Karsten Hopp f301e8
Problem:    Can't call a function that uses both <SID> and {expr}. (Thomas)
Karsten Hopp f301e8
Solution:   Check both the expanded and unexpanded name for <SID>.
Karsten Hopp f301e8
Files:	    src/eval.c
Karsten Hopp f301e8
Karsten Hopp f301e8
Karsten Hopp f301e8
*** ../vim-7.0.007/src/eval.c	Wed May 10 15:22:49 2006
Karsten Hopp f301e8
--- src/eval.c	Wed May 10 12:11:42 2006
Karsten Hopp f301e8
***************
Karsten Hopp f301e8
*** 11372,11378 ****
Karsten Hopp f301e8
  	    if (argvars[2].v_type != VAR_UNKNOWN)
Karsten Hopp f301e8
  	    {
Karsten Hopp f301e8
  		char_u	*xp_name;
Karsten Hopp f301e8
! 		int		xp_namelen;
Karsten Hopp f301e8
  		long	argt;
Karsten Hopp f301e8
  
Karsten Hopp f301e8
  		rettv->vval.v_string = NULL;
Karsten Hopp f301e8
--- 11372,11378 ----
Karsten Hopp f301e8
  	    if (argvars[2].v_type != VAR_UNKNOWN)
Karsten Hopp f301e8
  	    {
Karsten Hopp f301e8
  		char_u	*xp_name;
Karsten Hopp f301e8
! 		int	xp_namelen;
Karsten Hopp f301e8
  		long	argt;
Karsten Hopp f301e8
  
Karsten Hopp f301e8
  		rettv->vval.v_string = NULL;
Karsten Hopp f301e8
***************
Karsten Hopp f301e8
*** 18963,18969 ****
Karsten Hopp f301e8
      else if (lead > 0)
Karsten Hopp f301e8
      {
Karsten Hopp f301e8
  	lead = 3;
Karsten Hopp f301e8
! 	if (eval_fname_sid(lv.ll_exp_name != NULL ? lv.ll_exp_name : *pp))
Karsten Hopp f301e8
  	{
Karsten Hopp f301e8
  	    /* It's "s:" or "<SID>" */
Karsten Hopp f301e8
  	    if (current_SID <= 0)
Karsten Hopp f301e8
--- 18963,18970 ----
Karsten Hopp f301e8
      else if (lead > 0)
Karsten Hopp f301e8
      {
Karsten Hopp f301e8
  	lead = 3;
Karsten Hopp f301e8
! 	if ((lv.ll_exp_name != NULL && eval_fname_sid(lv.ll_exp_name))
Karsten Hopp f301e8
! 						       || eval_fname_sid(*pp))
Karsten Hopp f301e8
  	{
Karsten Hopp f301e8
  	    /* It's "s:" or "<SID>" */
Karsten Hopp f301e8
  	    if (current_SID <= 0)
Karsten Hopp f301e8
*** ../vim-7.0.007/src/version.c	Wed May 10 17:38:05 2006
Karsten Hopp f301e8
--- src/version.c	Wed May 10 17:39:46 2006
Karsten Hopp f301e8
***************
Karsten Hopp f301e8
*** 668,669 ****
Karsten Hopp f301e8
--- 668,671 ----
Karsten Hopp f301e8
  {   /* Add new patch number below this line */
Karsten Hopp f301e8
+ /**/
Karsten Hopp f301e8
+     8,
Karsten Hopp f301e8
  /**/
Karsten Hopp f301e8
Karsten Hopp f301e8
-- 
Karsten Hopp f301e8
From "know your smileys":
Karsten Hopp f301e8
 %	Bike accident.  A bit far-fetched, I suppose; although...
Karsten Hopp f301e8
             o      _     _         _
Karsten Hopp f301e8
     _o     /\_   _ \\o  (_)\__/o  (_)
Karsten Hopp f301e8
   _< \_   _>(_) (_)/<_    \_| \   _|/' \/
Karsten Hopp f301e8
  (_)>(_) (_)        (_)   (_)    (_)'  _\o_
Karsten Hopp f301e8
Karsten Hopp f301e8
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp f301e8
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp f301e8
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp f301e8
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///