0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 7.4.2020

Problem:    Can't build without +autocmd feature.
Solution:   Adjust #ifdefs.
This commit is contained in:
Bram Moolenaar 2016-07-10 18:33:59 +02:00
parent c4a927ca8d
commit 453f37dbfd
2 changed files with 3 additions and 3 deletions

View File

@ -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()))

View File

@ -758,6 +758,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2020,
/**/
2019,
/**/