Do not show startup info when piping into kak

Fixes #1340
This commit is contained in:
Maxime Coste 2017-06-08 10:03:07 +01:00
parent ad9b090ddf
commit 2b5fafa909

View File

@ -967,7 +967,7 @@ int main(int argc, char* argv[])
auto flags = (parser.get_switch("n") ? ServerFlags::IgnoreKakrc : ServerFlags::None) |
(parser.get_switch("d") ? ServerFlags::Daemon : ServerFlags::None) |
(parser.get_switch("ro") ? ServerFlags::ReadOnly : ServerFlags::None) |
(argc == 1 ? ServerFlags::StartupInfo : ServerFlags::None);
(argc == 1 and isatty(0) ? ServerFlags::StartupInfo : ServerFlags::None);
return run_server(session, server_init, client_init, init_coord, flags, ui_type, files);
}
catch (convert_to_client_mode& convert)