updated for version 7.0020
diff --git a/src/buffer.c b/src/buffer.c
index cfca939..a1d593d 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1413,6 +1413,12 @@
#endif
scroll_cursor_halfway(FALSE); /* redisplay at correct position */
+#ifdef FEAT_NETBEANS_INTG
+ /* Send fileOpened event because we've changed buffers. */
+ if (usingNetbeans && isNetbeansBuffer(curbuf))
+ netbeans_file_activated(curbuf);
+#endif
+
#if defined(FEAT_NETBEANS_INTG) || defined(FEAT_SUN_WORKSHOP)
/* Change directories when the acd option is set on. */
if (p_acd && curbuf->b_ffname != NULL