Mercurial > vim
changeset 2095:8aa3cd045aef v7.2.379
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.
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Tue, 02 Mar 2010 12:48:05 +0100 |
parents | e319a4fe6e32 |
children | 6510d834609f |
files | src/fileio.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);