]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.379 v7.2.379
authorBram Moolenaar <Bram@vim.org>
Tue, 2 Mar 2010 11:48:05 +0000 (12:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 2 Mar 2010 11:48:05 +0000 (12:48 +0100)
Problem:    'eventignore' is set to an invalid value inside ":doau". (Antony
            Scriven)
Solution:   Don't include the leading comma when the option was empty.

src/fileio.c
src/version.c

index 0e2d1cca77b7469d608d7d62789b6077ea170642..88188e5979417eea465f8798cf3c16b2fd4a7a23 100644 (file)
@@ -7925,7 +7925,10 @@ au_event_disable(what)
        new_ei = vim_strnsave(p_ei, (int)(STRLEN(p_ei) + STRLEN(what)));
        if (new_ei != NULL)
        {
-           STRCAT(new_ei, what);
+           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);
index 4837d202bc186b7fa35741148f2f4d516e9ea3d6..89b94d627437af74bb3c4e300e45a8ab4cb98fd8 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    379,
 /**/
     378,
 /**/