comparison src/main.c @ 1226:a49d06539452

updated for version 7.1b
author vimboss
date Thu, 10 May 2007 19:19:59 +0000
parents d0830c09ed10
children e2680bc6a180
comparison
equal deleted inserted replaced
1225:96baedde8d86 1226:a49d06539452
743 * When done something that is not allowed or error message call 743 * When done something that is not allowed or error message call
744 * wait_return. This must be done before starttermcap(), because it may 744 * wait_return. This must be done before starttermcap(), because it may
745 * switch to another screen. It must be done after settmode(TMODE_RAW), 745 * switch to another screen. It must be done after settmode(TMODE_RAW),
746 * because we want to react on a single key stroke. 746 * because we want to react on a single key stroke.
747 * Call settmode and starttermcap here, so the T_KS and T_TI may be 747 * Call settmode and starttermcap here, so the T_KS and T_TI may be
748 * defined by termcapinit and redifined in .exrc. 748 * defined by termcapinit and redefined in .exrc.
749 */ 749 */
750 settmode(TMODE_RAW); 750 settmode(TMODE_RAW);
751 TIME_MSG("setting raw mode"); 751 TIME_MSG("setting raw mode");
752 752
753 if (need_wait_return || msg_didany) 753 if (need_wait_return || msg_didany)
2251 /* 2251 /*
2252 * This shouldn't be necessary. But if I run netbeans with the log 2252 * This shouldn't be necessary. But if I run netbeans with the log
2253 * output coming to the console and XOpenDisplay fails, I get vim 2253 * output coming to the console and XOpenDisplay fails, I get vim
2254 * trying to start with input/output to my console tty. This fills my 2254 * trying to start with input/output to my console tty. This fills my
2255 * input buffer so fast I can't even kill the process in under 2 2255 * input buffer so fast I can't even kill the process in under 2
2256 * minutes (and it beeps continuosly the whole time :-) 2256 * minutes (and it beeps continuously the whole time :-)
2257 */ 2257 */
2258 if (usingNetbeans && (!parmp->stdout_isatty || !input_isatty)) 2258 if (usingNetbeans && (!parmp->stdout_isatty || !input_isatty))
2259 { 2259 {
2260 mch_errmsg(_("Vim: Error: Failure to start gvim from NetBeans\n")); 2260 mch_errmsg(_("Vim: Error: Failure to start gvim from NetBeans\n"));
2261 exit(1); 2261 exit(1);
2806 mch_exit(2); 2806 mch_exit(2);
2807 #endif 2807 #endif
2808 } 2808 }
2809 2809
2810 /* 2810 /*
2811 * Get an evironment variable, and execute it as Ex commands. 2811 * Get an environment variable, and execute it as Ex commands.
2812 * Returns FAIL if the environment variable was not executed, OK otherwise. 2812 * Returns FAIL if the environment variable was not executed, OK otherwise.
2813 */ 2813 */
2814 int 2814 int
2815 process_env(env, is_viminit) 2815 process_env(env, is_viminit)
2816 char_u *env; 2816 char_u *env;