Karsten Hopp 8b2c30
To: vim-dev@vim.org
Karsten Hopp 8b2c30
Subject: patch 7.1.097
Karsten Hopp 8b2c30
Fcc: outbox
Karsten Hopp 8b2c30
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8b2c30
Mime-Version: 1.0
Karsten Hopp 8b2c30
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 8b2c30
Content-Transfer-Encoding: 8bit
Karsten Hopp 8b2c30
------------
Karsten Hopp 8b2c30
Karsten Hopp 8b2c30
Patch 7.1.097
Karsten Hopp 8b2c30
Problem:    ":setlocal stl=%!1+1" does not work.
Karsten Hopp 8b2c30
Solution:   Adjust check for pointer. (Politz)
Karsten Hopp 8b2c30
Files:	    src/option.c
Karsten Hopp 8b2c30
Karsten Hopp 8b2c30
Karsten Hopp 8b2c30
*** ../vim-7.1.096/src/option.c	Sun Aug 12 15:50:26 2007
Karsten Hopp 8b2c30
--- src/option.c	Wed Sep  5 22:34:27 2007
Karsten Hopp 8b2c30
***************
Karsten Hopp 8b2c30
*** 6348,6354 ****
Karsten Hopp 8b2c30
  		errmsg = check_stl_option(p_ruf);
Karsten Hopp 8b2c30
  	}
Karsten Hopp 8b2c30
  	/* check 'statusline' only if it doesn't start with "%!" */
Karsten Hopp 8b2c30
! 	else if (varp != &p_stl || s[0] != '%' || s[1] != '!')
Karsten Hopp 8b2c30
  	    errmsg = check_stl_option(s);
Karsten Hopp 8b2c30
  	if (varp == &p_ruf && errmsg == NULL)
Karsten Hopp 8b2c30
  	    comp_col();
Karsten Hopp 8b2c30
--- 6352,6358 ----
Karsten Hopp 8b2c30
  		errmsg = check_stl_option(p_ruf);
Karsten Hopp 8b2c30
  	}
Karsten Hopp 8b2c30
  	/* check 'statusline' only if it doesn't start with "%!" */
Karsten Hopp 8b2c30
! 	else if (varp == &p_ruf || s[0] != '%' || s[1] != '!')
Karsten Hopp 8b2c30
  	    errmsg = check_stl_option(s);
Karsten Hopp 8b2c30
  	if (varp == &p_ruf && errmsg == NULL)
Karsten Hopp 8b2c30
  	    comp_col();
Karsten Hopp 8b2c30
*** ../vim-7.1.096/src/version.c	Thu Sep  6 12:53:59 2007
Karsten Hopp 8b2c30
--- src/version.c	Thu Sep  6 13:31:37 2007
Karsten Hopp 8b2c30
***************
Karsten Hopp 8b2c30
*** 668,669 ****
Karsten Hopp 8b2c30
--- 668,671 ----
Karsten Hopp 8b2c30
  {   /* Add new patch number below this line */
Karsten Hopp 8b2c30
+ /**/
Karsten Hopp 8b2c30
+     97,
Karsten Hopp 8b2c30
  /**/
Karsten Hopp 8b2c30
Karsten Hopp 8b2c30
-- 
Karsten Hopp 8b2c30
Not too long ago, cut and paste was done with scissors and glue...
Karsten Hopp 8b2c30
Karsten Hopp 8b2c30
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8b2c30
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8b2c30
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 8b2c30
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///