summaryrefslogtreecommitdiff
path: root/src/netbeans.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-02-02 22:55:47 +0000
committerBram Moolenaar <Bram@vim.org>2005-02-02 22:55:47 +0000
commit24c088a284f8759c62fd47870411a836f02da99d (patch)
treedd4e82e58aac184cc1db3ffe2e4e72c3bd3a9586 /src/netbeans.c
parent2e6aff38e0daa3cbd5b3622da19af917be5d9d67 (diff)
downloadvim-git-24c088a284f8759c62fd47870411a836f02da99d.tar.gz
updated for version 7.0047
Diffstat (limited to 'src/netbeans.c')
-rw-r--r--src/netbeans.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/netbeans.c b/src/netbeans.c
index 1611a8fa0..ed75470c5 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -1676,20 +1676,20 @@ nb_do_cmd(
return FAIL;
}
buf->fireChanges = 0;
- if (buf->bufp != NULL)
+ if (buf->bufp != NULL && buf->bufp->b_was_netbeans_file)
{
- if (buf->bufp->b_was_netbeans_file
- && !buf->bufp->b_netbeans_file)
+ if (!buf->bufp->b_netbeans_file)
EMSGN(_("E658: NetBeans connection lost for buffer %ld"),
buf->bufp->b_fnum);
-#if 0 /* This breaks Agide. */
else
{
- do_bufdel(DOBUF_DEL, (char_u *)"", 1, buf->bufp->b_fnum,
- buf->bufp->b_fnum, TRUE);
+ /* NetBeans uses stopDocumentListen when it stops editing
+ * a file. It then expects the buffer in Vim to
+ * disappear. */
+ do_bufdel(DOBUF_DEL, (char_u *)"", 1,
+ buf->bufp->b_fnum, buf->bufp->b_fnum, TRUE);
vim_memset(buf, 0, sizeof(nbbuf_T));
}
-#endif
}
/* =====================================================================*/
}