updated for version 7.3.312

Problem:    Can't compile with tiny features.
Solution:   Add #ifdef around win_valid().
This commit is contained in:
Bram Moolenaar
2011-09-14 17:50:14 +02:00
parent 821390843b
commit ddab33232a
2 changed files with 7 additions and 1 deletions

View File

@ -416,7 +416,11 @@ close_buffer(win, buf, action)
#endif
buf_freeall(buf, (del_buf ? BFA_DEL : 0) + (wipe_buf ? BFA_WIPE : 0));
if (win_valid(win) && win->w_buffer == buf)
if (
#ifdef FEAT_WINDOWS
win_valid(win) &&
#endif
win->w_buffer == buf)
win->w_buffer = NULL; /* make sure we don't use the buffer now */
#ifdef FEAT_AUTOCMD

View File

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