summaryrefslogtreecommitdiff
path: root/src/misc1.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/misc1.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/misc1.c')
-rw-r--r--src/misc1.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 32e3c17ae..135293dd2 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -3183,12 +3183,10 @@ changed_common(
if (must_redraw < VALID)
must_redraw = VALID;
-#ifdef FEAT_AUTOCMD
/* when the cursor line is changed always trigger CursorMoved */
if (lnum <= curwin->w_cursor.lnum
&& lnume + (xtra < 0 ? -xtra : xtra) > curwin->w_cursor.lnum)
last_cursormoved.lnum = 0;
-#endif
}
/*
@@ -3252,18 +3250,14 @@ change_warning(
if (curbuf->b_did_warn == FALSE
&& curbufIsChanged() == 0
-#ifdef FEAT_AUTOCMD
&& !autocmd_busy
-#endif
&& curbuf->b_p_ro)
{
-#ifdef FEAT_AUTOCMD
++curbuf_lock;
apply_autocmds(EVENT_FILECHANGEDRO, NULL, NULL, FALSE, curbuf);
--curbuf_lock;
if (!curbuf->b_p_ro)
return;
-#endif
/*
* Do what msg() does, but with a column offset if the warning should
* be after the mode message.