diff src/ex_cmds.c @ 9659:08df6ad72c56 v7.4.2106

commit https://github.com/vim/vim/commit/ac77aec4daea8d73468fcf4690cb4ccab1d807ed Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 26 22:02:54 2016 +0200 patch 7.4.2106 Problem: Clang warns about missing field in initializer. Solution: Define COMMA and use it. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Tue, 26 Jul 2016 22:15:05 +0200
parents fd9727ae3c49
children 88e8bca71d75
line wrap: on
line diff
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -4008,6 +4008,7 @@ do_ecmd(
 	    }
 	    vim_free(new_name);
 	    au_new_curbuf.br_buf = NULL;
+	    au_new_curbuf.br_buf_free_count = 0;
 #endif
 	}
 
@@ -4389,6 +4390,7 @@ delbuf_msg(char_u *name)
 	    name == NULL ? (char_u *)"" : name);
     vim_free(name);
     au_new_curbuf.br_buf = NULL;
+    au_new_curbuf.br_buf_free_count = 0;
 }
 #endif