diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-02 21:51:56 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-02 21:51:56 +0100 |
commit | d1413d90983fc6c579ad66ba4d4611b057197f94 (patch) | |
tree | 202502376399ed2bc098c6566019b4cee8046b46 /src/syntax.c | |
parent | 4ca812b15378f83e56a2dc42947a61d0aa40697f (diff) | |
download | vim-git-d1413d90983fc6c579ad66ba4d4611b057197f94.tar.gz |
patch 7.4.1473v7.4.1473
Problem: Can't build without the autocommand feature.
Solution: Add #ifdefs. (Yegappan Lakshmanan)
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c index b385d1a70..e37dacb8f 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -6342,9 +6342,11 @@ ex_ownsyntax(exarg_T *eap) if (old_value != NULL) old_value = vim_strsave(old_value); +#ifdef FEAT_AUTOCMD /* Apply the "syntax" autocommand event, this finds and loads the syntax * file. */ apply_autocmds(EVENT_SYNTAX, eap->arg, curbuf->b_fname, TRUE, curbuf); +#endif /* move value of b:current_syntax to w:current_syntax */ new_value = get_var_value((char_u *)"b:current_syntax"); |