0
0
mirror of https://github.com/vim/vim.git synced 2025-10-18 07:54:29 -04:00

updated for version 7.4b.015

Problem:    Can't compile without the 'acd' feature.
Solution:   Add #ifdefs. (Kazunobu Kuriyama)
This commit is contained in:
Bram Moolenaar
2013-08-05 22:02:20 +02:00
parent 9d98fe9cae
commit 01c458e438
2 changed files with 8 additions and 0 deletions

View File

@@ -8861,7 +8861,9 @@ aucmd_prepbuf(aco, buf)
#ifdef FEAT_WINDOWS #ifdef FEAT_WINDOWS
int save_ea; int save_ea;
#endif #endif
#ifdef FEAT_AUTOCHDIR
int save_acd; int save_acd;
#endif
/* Find a window that is for the new buffer */ /* Find a window that is for the new buffer */
if (buf == curbuf) /* be quick when buf is curbuf */ if (buf == curbuf) /* be quick when buf is curbuf */
@@ -8927,14 +8929,18 @@ aucmd_prepbuf(aco, buf)
save_ea = p_ea; save_ea = p_ea;
p_ea = FALSE; p_ea = FALSE;
# ifdef FEAT_AUTOCHDIR
/* Prevent chdir() call in win_enter_ext(), through do_autochdir(). */ /* Prevent chdir() call in win_enter_ext(), through do_autochdir(). */
save_acd = p_acd; save_acd = p_acd;
p_acd = FALSE; p_acd = FALSE;
# endif
(void)win_split_ins(0, WSP_TOP, aucmd_win, 0); (void)win_split_ins(0, WSP_TOP, aucmd_win, 0);
(void)win_comp_pos(); /* recompute window positions */ (void)win_comp_pos(); /* recompute window positions */
p_ea = save_ea; p_ea = save_ea;
# ifdef FEAT_AUTOCHDIR
p_acd = save_acd; p_acd = save_acd;
# endif
unblock_autocmds(); unblock_autocmds();
#endif #endif
curwin = aucmd_win; curwin = aucmd_win;

View File

@@ -727,6 +727,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 */
/**/
15,
/**/ /**/
14, 14,
/**/ /**/