summaryrefslogtreecommitdiff
path: root/source/ap/vim/patches/7.2.379
blob: 8a600e9eb90f78a6493113eb5d7097cc5fcf6e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
To: vim-dev@vim.org
Subject: Patch 7.2.379
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.2.379
Problem:    'eventignore' is set to an invalid value inside ":doau". (Antony
	    Scriven)
Solution:   Don't include the leading comma when the option was empty.
Files:	    src/fileio.c


*** ../vim-7.2.378/src/fileio.c	2010-01-19 14:59:14.000000000 +0100
--- src/fileio.c	2010-03-01 21:01:04.000000000 +0100
***************
*** 7925,7931 ****
  	new_ei = vim_strnsave(p_ei, (int)(STRLEN(p_ei) + STRLEN(what)));
  	if (new_ei != NULL)
  	{
! 	    STRCAT(new_ei, what);
  	    set_string_option_direct((char_u *)"ei", -1, new_ei,
  							  OPT_FREE, SID_NONE);
  	    vim_free(new_ei);
--- 7925,7934 ----
  	new_ei = vim_strnsave(p_ei, (int)(STRLEN(p_ei) + STRLEN(what)));
  	if (new_ei != NULL)
  	{
! 	    if (*what == ',' && *p_ei == NUL)
! 		STRCPY(new_ei, what + 1);
! 	    else
! 		STRCAT(new_ei, what);
  	    set_string_option_direct((char_u *)"ei", -1, new_ei,
  							  OPT_FREE, SID_NONE);
  	    vim_free(new_ei);
*** ../vim-7.2.378/src/version.c	2010-03-02 12:37:01.000000000 +0100
--- src/version.c	2010-03-02 12:46:45.000000000 +0100
***************
*** 683,684 ****
--- 683,686 ----
  {   /* Add new patch number below this line */
+ /**/
+     379,
  /**/

-- 
Back up my hard drive?  I can't find the reverse switch!

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///