vim-patch:7.4.786

Problem:    It is not possible for a plugin to adjust to a changed setting.
Solution:   Add the OptionSet autocommand event. (Christian Brabandt)

537443018d
This commit is contained in:
watiko
2015-11-27 23:56:52 +09:00
parent b9139e009f
commit 119545190c
11 changed files with 310 additions and 7 deletions

View File

@@ -6426,7 +6426,7 @@ apply_autocmds_group (
* invalid.
*/
if (fname_io == NULL) {
if (event == EVENT_COLORSCHEME)
if (event == EVENT_COLORSCHEME || event == EVENT_OPTIONSET)
autocmd_fname = NULL;
else if (fname != NULL && *fname != NUL)
autocmd_fname = fname;
@@ -6476,6 +6476,7 @@ apply_autocmds_group (
if (event == EVENT_COLORSCHEME
|| event == EVENT_FILETYPE
|| event == EVENT_FUNCUNDEFINED
|| event == EVENT_OPTIONSET
|| event == EVENT_QUICKFIXCMDPOST
|| event == EVENT_QUICKFIXCMDPRE
|| event == EVENT_REMOTEREPLY