summaryrefslogtreecommitdiff
path: root/src/autocmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/autocmd.c')
-rw-r--r--src/autocmd.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/autocmd.c b/src/autocmd.c
index 640032b60..8a6896bae 100644
--- a/src/autocmd.c
+++ b/src/autocmd.c
@@ -1678,10 +1678,7 @@ trigger_cursorhold(void)
&& has_cursorhold()
&& reg_recording == 0
&& typebuf.tb_len == 0
-#ifdef FEAT_INS_EXPAND
- && !ins_compl_active()
-#endif
- )
+ && !ins_compl_active())
{
state = get_real_state();
if (state == NORMAL_BUSY || (state & INSERT) != 0)
@@ -1726,7 +1723,6 @@ has_textchangedI(void)
return (first_autopat[(int)EVENT_TEXTCHANGEDI] != NULL);
}
-#if defined(FEAT_INS_EXPAND) || defined(PROTO)
/*
* Return TRUE when there is a TextChangedP autocommand defined.
*/
@@ -1735,7 +1731,6 @@ has_textchangedP(void)
{
return (first_autopat[(int)EVENT_TEXTCHANGEDP] != NULL);
}
-#endif
/*
* Return TRUE when there is an InsertCharPre autocommand defined.
@@ -2044,9 +2039,7 @@ apply_autocmds_group(
if (!autocmd_busy)
{
save_search_patterns();
-#ifdef FEAT_INS_EXPAND
if (!ins_compl_active())
-#endif
{
saveRedobuff(&save_redo);
did_save_redobuff = TRUE;