Problem: Startup test fails on Mac.
Solution: Use another term name, "unknown" is known. Avoid a 2 second delay.
#endif
}
+/*
+ * Return TRUE when the --not-a-term argument was found.
+ */
+ int
+is_not_a_term()
+{
+ return params.not_a_term;
+}
+
/*
* Main loop: Execute Normal mode commands until exiting Vim.
* Also used to handle commands in the command-line window, until the window
/* main.c */
int vim_main2(void);
void common_init(mparm_T *paramp);
+int is_not_a_term(void);
void main_loop(int cmdwin, int noexmode);
void getout_preserve_modified(int exitval);
void getout(int exitval);
{
screen_start(); /* don't know where cursor is now */
out_flush();
- ui_delay(2000L, TRUE);
+ if (!is_not_a_term())
+ ui_delay(2000L, TRUE);
}
set_string_option_direct((char_u *)"term", -1, term,
OPT_FREE, 0);
endif
let save_term = $TERM
- let $TERM = 'unknown'
+ let $TERM = 'unknownxxx'
let out = system(GetVimCommand() . ' -c''set term'' -c cq')
call assert_match("defaulting to 'ansi'", out)
let $TERM = save_term
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 539,
/**/
538,
/**/