summaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-03-04 18:08:14 +0100
committerBram Moolenaar <Bram@vim.org>2018-03-04 18:08:14 +0100
commitf2bd8ef2b4507d02c6043affff8f7e85e3414d5f (patch)
treef14cb8e7ff09975920f3a813d7de4851a2972661 /src/memline.c
parent3f54fd319f6641b4bed478bcc90cdb39ede68e31 (diff)
downloadvim-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/memline.c')
-rw-r--r--src/memline.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/memline.c b/src/memline.c
index 7ea94ab8b..5ecb32c10 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -1732,13 +1732,11 @@ theend:
}
if (serious_error && called_from_main)
ml_close(curbuf, TRUE);
-#ifdef FEAT_AUTOCMD
else
{
apply_autocmds(EVENT_BUFREADPOST, NULL, curbuf->b_fname, FALSE, curbuf);
apply_autocmds(EVENT_BUFWINENTER, NULL, curbuf->b_fname, FALSE, curbuf);
}
-#endif
return;
}
@@ -4071,7 +4069,7 @@ attention_message(
--no_wait_return;
}
-#ifdef FEAT_AUTOCMD
+#if defined(FEAT_EVAL)
static int do_swapexists(buf_T *buf, char_u *fname);
/*
@@ -4450,7 +4448,7 @@ findswapname(
#if (defined(UNIX) || defined(VMS)) && (defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG))
process_still_running = FALSE;
#endif
-#ifdef FEAT_AUTOCMD
+#if defined(FEAT_EVAL)
/*
* If there is an SwapExists autocommand and we can handle
* the response, trigger it. It may return 0 to ask the