diff options
author | Bram Moolenaar <Bram@vim.org> | 2004-10-24 19:23:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2004-10-24 19:23:07 +0000 |
commit | 35a9aaab4a2171821f5a19acaa99015818daba07 (patch) | |
tree | 58dddbd986eedf3e523c8ed5285b08c1d61fdada /src/main.c | |
parent | 009b2592f7488286f286484b7f389e36fffa4bd9 (diff) | |
download | vim-git-35a9aaab4a2171821f5a19acaa99015818daba07.tar.gz |
updated for version 7.0020v7.0020
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 0f63d7848..3976a4433 100644 --- a/src/main.c +++ b/src/main.c @@ -1255,6 +1255,20 @@ scripterror: #endif ) { +#ifdef NBDEBUG + /* + * This shouldn't be necessary. But if I run netbeans with the log + * output coming to the console and XOpenDisplay fails, I get vim + * trying to start with input/output to my console tty. This fills my + * input buffer so fast I can't even kill the process in under 2 + * minutes (and it beeps continuosly the whole time :-) + */ + if (usingNetbeans && (!stdout_isatty || !input_isatty)) + { + mch_errmsg(_("Vim: Error: Failure to start gvim from NetBeans\n")); + exit(1); + } +#endif if (!stdout_isatty) mch_errmsg(_("Vim: Warning: Output is not to a terminal\n")); if (!input_isatty) |