Merge #7679 'startup: treat stdin as text instead of commands'

This commit is contained in:
Justin M. Keyes
2018-06-10 15:10:59 +02:00
committed by GitHub
10 changed files with 552 additions and 567 deletions

View File

@@ -2076,8 +2076,9 @@ static void t_puts(int *t_col, const char_u *t_s, const char_u *s, int attr)
}
}
// Returns TRUE when messages should be printed to stdout/stderr, which
// happens when no UIs are attached and nvim is not being embedded
// Returns TRUE when messages should be printed to stdout/stderr:
// - "batch mode" ("silent mode", -es/-Es)
// - no UI and not embedded
int msg_use_printf(void)
{
return !embedded_mode && !ui_active();