Mercurial > vim
comparison src/netbeans.c @ 2595:bf9579ab26e5 v7.3.019
updated for version 7.3.019
Problem: ":nbstart" can fail silently.
Solution: Give an error when netbeans is not supported by the GUI. (Xavier
de Gaye)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 30 Sep 2010 21:03:26 +0200 |
parents | 2c5e70e2858f |
children | 75a89c7c204e |
comparison
equal
deleted
inserted
replaced
2594:56b638f2029e | 2595:bf9579ab26e5 |
---|---|
2771 | 2771 |
2772 void | 2772 void |
2773 ex_nbstart(eap) | 2773 ex_nbstart(eap) |
2774 exarg_T *eap; | 2774 exarg_T *eap; |
2775 { | 2775 { |
2776 #ifdef FEAT_GUI | |
2777 # if !defined(FEAT_GUI_X11) && !defined(FEAT_GUI_GTK) \ | |
2778 && !defined(FEAT_GUI_W32) | |
2779 if (gui.in_use) | |
2780 { | |
2781 EMSG(_("E838: netbeans is not supported with this GUI")); | |
2782 return; | |
2783 } | |
2784 # endif | |
2785 #endif | |
2776 netbeans_open((char *)eap->arg, FALSE); | 2786 netbeans_open((char *)eap->arg, FALSE); |
2777 } | 2787 } |
2778 | 2788 |
2779 /* | 2789 /* |
2780 * Initialize highlights and signs for use by netbeans (mostly obsolete) | 2790 * Initialize highlights and signs for use by netbeans (mostly obsolete) |