updated for version 7.0-050
diff --git a/src/netbeans.c b/src/netbeans.c
index e2f3a9d..98c9a35 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -1986,6 +1986,8 @@
 	    if (buf->bufp != NULL)
 		do_buffer(DOBUF_WIPE, DOBUF_FIRST, FORWARD,
 						     buf->bufp->b_fnum, TRUE);
+	    buf->bufp = NULL;
+	    buf->initDone = FALSE;
 	    doupdate = 1;
 /* =====================================================================*/
 	}
diff --git a/src/version.c b/src/version.c
index fffb90b..2bcf631 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    50,
+/**/
     49,
 /**/
     48,