Karsten Hopp b21773
To: vim-dev@vim.org
Karsten Hopp b21773
Subject: Patch 7.2.379
Karsten Hopp b21773
Fcc: outbox
Karsten Hopp b21773
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp b21773
Mime-Version: 1.0
Karsten Hopp b21773
Content-Type: text/plain; charset=UTF-8
Karsten Hopp b21773
Content-Transfer-Encoding: 8bit
Karsten Hopp b21773
------------
Karsten Hopp b21773
Karsten Hopp b21773
Patch 7.2.379
Karsten Hopp b21773
Problem:    'eventignore' is set to an invalid value inside ":doau". (Antony
Karsten Hopp b21773
	    Scriven)
Karsten Hopp b21773
Solution:   Don't include the leading comma when the option was empty.
Karsten Hopp b21773
Files:	    src/fileio.c
Karsten Hopp b21773
Karsten Hopp b21773
Karsten Hopp b21773
*** ../vim-7.2.378/src/fileio.c	2010-01-19 14:59:14.000000000 +0100
Karsten Hopp b21773
--- src/fileio.c	2010-03-01 21:01:04.000000000 +0100
Karsten Hopp b21773
***************
Karsten Hopp b21773
*** 7925,7931 ****
Karsten Hopp b21773
  	new_ei = vim_strnsave(p_ei, (int)(STRLEN(p_ei) + STRLEN(what)));
Karsten Hopp b21773
  	if (new_ei != NULL)
Karsten Hopp b21773
  	{
Karsten Hopp b21773
! 	    STRCAT(new_ei, what);
Karsten Hopp b21773
  	    set_string_option_direct((char_u *)"ei", -1, new_ei,
Karsten Hopp b21773
  							  OPT_FREE, SID_NONE);
Karsten Hopp b21773
  	    vim_free(new_ei);
Karsten Hopp b21773
--- 7925,7934 ----
Karsten Hopp b21773
  	new_ei = vim_strnsave(p_ei, (int)(STRLEN(p_ei) + STRLEN(what)));
Karsten Hopp b21773
  	if (new_ei != NULL)
Karsten Hopp b21773
  	{
Karsten Hopp b21773
! 	    if (*what == ',' && *p_ei == NUL)
Karsten Hopp b21773
! 		STRCPY(new_ei, what + 1);
Karsten Hopp b21773
! 	    else
Karsten Hopp b21773
! 		STRCAT(new_ei, what);
Karsten Hopp b21773
  	    set_string_option_direct((char_u *)"ei", -1, new_ei,
Karsten Hopp b21773
  							  OPT_FREE, SID_NONE);
Karsten Hopp b21773
  	    vim_free(new_ei);
Karsten Hopp b21773
*** ../vim-7.2.378/src/version.c	2010-03-02 12:37:01.000000000 +0100
Karsten Hopp b21773
--- src/version.c	2010-03-02 12:46:45.000000000 +0100
Karsten Hopp b21773
***************
Karsten Hopp b21773
*** 683,684 ****
Karsten Hopp b21773
--- 683,686 ----
Karsten Hopp b21773
  {   /* Add new patch number below this line */
Karsten Hopp b21773
+ /**/
Karsten Hopp b21773
+     379,
Karsten Hopp b21773
  /**/
Karsten Hopp b21773
Karsten Hopp b21773
-- 
Karsten Hopp b21773
Back up my hard drive?  I can't find the reverse switch!
Karsten Hopp b21773
Karsten Hopp b21773
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp b21773
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp b21773
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp b21773
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///