4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Using gvim with Agide gives "connection lost" error messages.
12 Solution: Only give the "connection lost" message when the buffer was once
14 Files: src/netbeans.c, src/structs.h
17 *** ../vim-6.2.235/src/netbeans.c Mon Feb 2 13:02:59 2004
18 --- src/netbeans.c Thu Feb 5 11:23:51 2004
24 ! if (buf->bufp != NULL && !buf->bufp->b_netbeans_file)
25 EMSGN(_("E658: NetBeans connection lost for buffer %ld"),
27 /* =====================================================================*/
32 ! if (buf->bufp != NULL
33 ! && buf->bufp->b_was_netbeans_file
34 ! && !buf->bufp->b_netbeans_file)
35 EMSGN(_("E658: NetBeans connection lost for buffer %ld"),
37 /* =====================================================================*/
40 nbdebug((" null bufp in %s command", cmd));
43 ! buf->bufp->b_netbeans_file = *args == 'T' ? TRUE : FALSE;
44 /* =====================================================================*/
46 else if (streq((char *)cmd, "version"))
48 nbdebug((" null bufp in %s command", cmd));
53 ! buf->bufp->b_netbeans_file = TRUE;
54 ! buf->bufp->b_was_netbeans_file = TRUE;
57 ! buf->bufp->b_netbeans_file = FALSE;
58 /* =====================================================================*/
60 else if (streq((char *)cmd, "version"))
61 *** ../vim-6.2.235/src/structs.h Sun Jan 18 21:31:56 2004
62 --- src/structs.h Wed Feb 4 19:50:49 2004
67 #ifdef FEAT_NETBEANS_INTG
68 int b_netbeans_file; /* TRUE when buffer is owned by NetBeans */
69 + int b_was_netbeans_file;/* TRUE if b_netbeans_file was once set */
73 *** ../vim-6.2.235/src/version.c Wed Feb 4 21:44:27 2004
74 --- src/version.c Thu Feb 5 12:06:30 2004
78 { /* Add new patch number below this line */
84 George: "I just got a new set of golf clubs for my wife!"
87 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
88 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
89 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
90 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///