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.
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_MOTIF) && !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);
}