diff options
Diffstat (limited to 'src/autocmd.c')
-rw-r--r-- | src/autocmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/autocmd.c b/src/autocmd.c index 97b27effd..d1ecad944 100644 --- a/src/autocmd.c +++ b/src/autocmd.c @@ -2043,7 +2043,7 @@ apply_autocmds_group( { sfname = vim_strsave(fname); // Don't try expanding FileType, Syntax, FuncUndefined, WindowID, - // ColorScheme, QuickFixCmd* or DirChanged + // ColorScheme, QuickFixCmd*, DirChanged and similar. if (event == EVENT_FILETYPE || event == EVENT_SYNTAX || event == EVENT_CMDLINECHANGED @@ -2061,7 +2061,9 @@ apply_autocmds_group( || event == EVENT_OPTIONSET || event == EVENT_QUICKFIXCMDPOST || event == EVENT_DIRCHANGED + || event == EVENT_DIRCHANGEDPRE || event == EVENT_MODECHANGED + || event == EVENT_USER || event == EVENT_WINCLOSED) { fname = vim_strsave(fname); |