# HG changeset patch # User Christian Brabandt # Date 1468169105 -7200 # Node ID 6149d1374ea092c7a75280810caac6aea9c0a1c4 # Parent 6b63d4ac828ea3928c9099ebcd917d2dc25c9877 commit https://github.com/vim/vim/commit/453f37dbfd6f8304a36ea84e40a9965404206186 Author: Bram Moolenaar Date: Sun Jul 10 18:33:59 2016 +0200 patch 7.4.2020 Problem: Can't build without +autocmd feature. Solution: Adjust #ifdefs. diff --git a/src/buffer.c b/src/buffer.c --- a/src/buffer.c +++ b/src/buffer.c @@ -1488,9 +1488,7 @@ set_curbuf(buf_T *buf, int action) #ifdef FEAT_SYN_HL long old_tw = curbuf->b_p_tw; #endif -#ifdef FEAT_AUTOCMD bufref_T bufref; -#endif setpcmark(); if (!cmdmod.keepalt) @@ -1502,9 +1500,9 @@ set_curbuf(buf_T *buf, int action) /* close_windows() or apply_autocmds() may change curbuf */ prevbuf = curbuf; + set_bufref(&bufref, prevbuf); #ifdef FEAT_AUTOCMD - set_bufref(&bufref, prevbuf); if (!apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf) # ifdef FEAT_EVAL || (bufref_valid(&bufref) && !aborting())) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -759,6 +759,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2020, +/**/ 2019, /**/ 2018,