]> granicus.if.org Git - vim/commitdiff
patch 7.4.2325 v7.4.2325
authorBram Moolenaar <Bram@vim.org>
Sun, 4 Sep 2016 17:57:56 +0000 (19:57 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 4 Sep 2016 17:57:56 +0000 (19:57 +0200)
Problem:    Tiny build fails.
Solution:   Add #ifdef.

src/buffer.c
src/version.c

index f375c1f64947d762b333c8ef8abb6b737de43a3f..648916821442b8d4a70b2f4de5e83dd3b152cfba 100644 (file)
@@ -476,6 +476,7 @@ close_buffer(
        unload_buf = TRUE;
 #endif
 
+#ifdef FEAT_AUTOCMD
     /* Disallow deleting the buffer when it is locked (already being closed or
      * halfway a command that relies on it). Unloading is allowed. */
     if (buf->b_locked > 0 && (del_buf || wipe_buf))
@@ -483,6 +484,7 @@ close_buffer(
        EMSG(_("E937: Attempt to delete a buffer that is in use"));
        return;
     }
+#endif
 
     if (win != NULL
 #ifdef FEAT_WINDOWS
index f5843dd502369638354ba4bfffc42a64c857e82d..95777312dc4f2a7cc1060f1fba545f3572ef5969 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2325,
 /**/
     2324,
 /**/