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:
parent
c4a927ca8d
commit
453f37dbfd
@ -1488,9 +1488,7 @@ set_curbuf(buf_T *buf, int action)
|
|||||||
#ifdef FEAT_SYN_HL
|
#ifdef FEAT_SYN_HL
|
||||||
long old_tw = curbuf->b_p_tw;
|
long old_tw = curbuf->b_p_tw;
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_AUTOCMD
|
|
||||||
bufref_T bufref;
|
bufref_T bufref;
|
||||||
#endif
|
|
||||||
|
|
||||||
setpcmark();
|
setpcmark();
|
||||||
if (!cmdmod.keepalt)
|
if (!cmdmod.keepalt)
|
||||||
@ -1502,9 +1500,9 @@ set_curbuf(buf_T *buf, int action)
|
|||||||
|
|
||||||
/* close_windows() or apply_autocmds() may change curbuf */
|
/* close_windows() or apply_autocmds() may change curbuf */
|
||||||
prevbuf = curbuf;
|
prevbuf = curbuf;
|
||||||
|
set_bufref(&bufref, prevbuf);
|
||||||
|
|
||||||
#ifdef FEAT_AUTOCMD
|
#ifdef FEAT_AUTOCMD
|
||||||
set_bufref(&bufref, prevbuf);
|
|
||||||
if (!apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf)
|
if (!apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf)
|
||||||
# ifdef FEAT_EVAL
|
# ifdef FEAT_EVAL
|
||||||
|| (bufref_valid(&bufref) && !aborting()))
|
|| (bufref_valid(&bufref) && !aborting()))
|
||||||
|
@ -758,6 +758,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2020,
|
||||||
/**/
|
/**/
|
||||||
2019,
|
2019,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user