diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-03-04 18:08:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-03-04 18:08:14 +0100 |
commit | f2bd8ef2b4507d02c6043affff8f7e85e3414d5f (patch) | |
tree | f14cb8e7ff09975920f3a813d7de4851a2972661 /src/misc2.c | |
parent | 3f54fd319f6641b4bed478bcc90cdb39ede68e31 (diff) | |
download | vim-git-f2bd8ef2b4507d02c6043affff8f7e85e3414d5f.tar.gz |
patch 8.0.1564: too many #ifdefsv8.0.1564
Problem: Too many #ifdefs.
Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and
increases code size of tiny Vim by only 40 Kbyte.
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/misc2.c b/src/misc2.c index 1c705932d..d1484f01f 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -1099,10 +1099,8 @@ free_all_mem(void) return; entered_free_all_mem = TRUE; -# ifdef FEAT_AUTOCMD /* Don't want to trigger autocommands from here on. */ block_autocmds(); -# endif /* Close all tabs and windows. Reset 'equalalways' to avoid redraws. */ p_ea = FALSE; @@ -1157,9 +1155,7 @@ free_all_mem(void) # endif /* Obviously named calls. */ -# if defined(FEAT_AUTOCMD) free_all_autocmds(); -# endif clear_termcodes(); free_all_marks(); alist_clear(&global_alist); @@ -3403,11 +3399,9 @@ vim_chdirfile(char_u *fname, char *trigger_autocmd UNUSED) vim_strncpy(dir, fname, MAXPATHL - 1); *gettail_sep(dir) = NUL; res = mch_chdir((char *)dir) == 0 ? OK : FAIL; -#ifdef FEAT_AUTOCMD if (res == OK && trigger_autocmd != NULL) apply_autocmds(EVENT_DIRCHANGED, (char_u *)trigger_autocmd, dir, FALSE, curbuf); -#endif return res; } #endif |