summaryrefslogtreecommitdiff
path: root/src/term.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/term.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/term.c')
-rw-r--r--src/term.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/term.c b/src/term.c
index 7dbbefa49..72b68123b 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1985,7 +1985,6 @@ set_termname(char_u *term)
scroll_region_reset(); /* In case Rows changed */
check_map_keycodes(); /* check mappings for terminal codes used */
-#ifdef FEAT_AUTOCMD
{
bufref_T old_curbuf;
@@ -2003,7 +2002,6 @@ set_termname(char_u *term)
if (bufref_valid(&old_curbuf))
curbuf = old_curbuf.br_buf;
}
-#endif
}
#ifdef FEAT_TERMRESPONSE
@@ -4515,9 +4513,7 @@ check_termcode(
LOG_TR("Received U7 status");
u7_status = STATUS_GOT;
-# ifdef FEAT_AUTOCMD
did_cursorhold = TRUE;
-# endif
if (col == 2)
aw = "single";
else if (col == 3)
@@ -4560,9 +4556,7 @@ check_termcode(
LOG_TR("Received CRV response");
crv_status = STATUS_GOT;
-# ifdef FEAT_AUTOCMD
did_cursorhold = TRUE;
-# endif
/* If this code starts with CSI, you can bet that the
* terminal uses 8-bit codes. */
@@ -4702,10 +4696,8 @@ check_termcode(
# ifdef FEAT_EVAL
set_vim_var_string(VV_TERMRESPONSE, tp, slen);
# endif
-# ifdef FEAT_AUTOCMD
apply_autocmds(EVENT_TERMRESPONSE,
NULL, NULL, FALSE, curbuf);
-# endif
key_name[0] = (int)KS_EXTRA;
key_name[1] = (int)KE_IGNORE;
}