From: Bram Moolenaar Date: Tue, 2 Mar 2010 11:48:05 +0000 (+0100) Subject: updated for version 7.2.379 X-Git-Tag: v7.2.379 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cac9fd020f2c4b70856939b098a00546f2009ce;p=vim updated for version 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. --- diff --git a/src/fileio.c b/src/fileio.c index 0e2d1cca7..88188e597 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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); diff --git a/src/version.c b/src/version.c index 4837d202b..89b94d627 100644 --- a/src/version.c +++ b/src/version.c @@ -681,6 +681,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 379, /**/ 378, /**/