diff options
author | Bram Moolenaar <bram@zimbu.org> | 2010-03-02 12:48:05 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@zimbu.org> | 2010-03-02 12:48:05 +0100 |
commit | 9d1fab526a3915027a3236c06e70bb1a1d37c52e (patch) | |
tree | f8605996c0b12fbafa5adf97ffac32c75b4be5d3 | |
parent | 24cff11b14d59b86b03a506aab80a745fdc61494 (diff) | |
download | vim-7-2-379.tar.gz |
Problem: 'eventignore' is set to an invalid value inside ":doau". (Antony
Scriven)
Solution: Don't include the leading comma when the option was empty.
-rw-r--r-- | src/fileio.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 0e2d1cca..88188e59 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 4837d202..89b94d62 100644 --- a/src/version.c +++ b/src/version.c @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 379, +/**/ 378, /**/ 377, |