]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.312 v7.3.312
authorBram Moolenaar <Bram@vim.org>
Wed, 14 Sep 2011 15:50:14 +0000 (17:50 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 14 Sep 2011 15:50:14 +0000 (17:50 +0200)
Problem:    Can't compile with tiny features.
Solution:   Add #ifdef around win_valid().

src/buffer.c
src/version.c

index 81f6fdee8470051ed8b00f399468c3dcef1266fb..d4a9c1eeb16a36a2219dea635d10851089188460 100644 (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
index 42b4d5cdf657b5ad75e2b369eb142b74d7201036..beb7347d5916a8f1b4ef11e3c4a316d730868fed 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    312,
 /**/
     311,
 /**/