diff options
Diffstat (limited to 'src/netbeans.c')
-rw-r--r-- | src/netbeans.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/netbeans.c b/src/netbeans.c index f39111dc9..6f92b3c39 100644 --- a/src/netbeans.c +++ b/src/netbeans.c @@ -2773,6 +2773,16 @@ ex_nbkey(eap) 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(_("E838: netbeans is not supported with this GUI")); + return; + } +# endif +#endif netbeans_open((char *)eap->arg, FALSE); } |