On Fri, Aug 20, 2010 at 12:11 PM, Xavier de Gaye wrote: > The :nbstart command does not print an error message and attempts to > connect the netbeans socket when vim is built with a gui that is not > supported by netbeans. > > The attached patch fixes this bug. >
In my previous mail, the 'nbstart-fail-gui' attached patch was for vim7.3.003 (changeset 073ff46fe397). When the patch that adds support of netbeans on the Athena gui (that I have just sent) is applied on top of this one, as expected, netbeans Athena support does not work. The attached patch in this mail is the corresponding modified 'nbstart-fail-gui' patch that applies correctly on top of the patch that adds support of netbeans on Athena. Xavier -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
diff --git a/src/netbeans.c b/src/netbeans.c --- a/src/netbeans.c +++ b/src/netbeans.c @@ -2773,6 +2773,16 @@ ex_nbstart(eap) exarg_T *eap; { +#ifdef FEAT_GUI +# if !defined(FEAT_GUI_X11) && !defined(FEAT_GUI_GTK) \ + && !defined(FEAT_GUI_W32) + if (gui.in_use) + { + EMSG(_("E511: netbeans is not supported with this GUI")); + return; + } +# endif +#endif netbeans_open((char *)eap->arg, FALSE); }