0
0
mirror of https://github.com/vim/vim.git synced 2025-10-15 07:14:09 -04:00

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.
This commit is contained in:
Bram Moolenaar
2010-03-02 12:48:05 +01:00
parent 1a89bbe849
commit 8cac9fd020
2 changed files with 6 additions and 1 deletions

View 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);

View File

@@ -681,6 +681,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
379,
/**/
378,
/**/