diff options
author | watiko <service@mail.watiko.net> | 2015-11-27 23:56:52 +0900 |
---|---|---|
committer | watiko <service@mail.watiko.net> | 2015-11-28 17:22:28 +0900 |
commit | 119545190c1ec35e1c7b482f593b98d0fc485b6f (patch) | |
tree | 6a31debeb4826dd8c0e5f758d21ff5db25e66731 /src/nvim/fileio.c | |
parent | b9139e009f3eb833ab57e73d1ecdbe68752112fe (diff) | |
download | rneovim-119545190c1ec35e1c7b482f593b98d0fc485b6f.tar.gz rneovim-119545190c1ec35e1c7b482f593b98d0fc485b6f.tar.bz2 rneovim-119545190c1ec35e1c7b482f593b98d0fc485b6f.zip |
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)
https://github.com/vim/vim/commit/537443018d41918639695a442c91b34ccec69fc3
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 4aa4d4c399..f57b48cd15 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -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 |