Send the \n to stdout with the message, not stderr... doh.
authornicm <nicm@openbsd.org>
Mon, 19 Jul 2010 18:27:38 +0000 (18:27 +0000)
committernicm <nicm@openbsd.org>
Mon, 19 Jul 2010 18:27:38 +0000 (18:27 +0000)
usr.bin/tmux/server-client.c

index 63180f8..195a6db 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.34 2010/07/11 17:06:45 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.35 2010/07/19 18:27:38 nicm Exp $ */
 
 /*
  * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -695,7 +695,7 @@ server_client_msg_info(struct cmd_ctx *ctx, const char *fmt, ...)
        vfprintf(ctx->cmdclient->stdout_file, fmt, ap);
        va_end(ap);
 
-       fputc('\n', ctx->cmdclient->stderr_file);
+       fputc('\n', ctx->cmdclient->stdout_file);
        fflush(ctx->cmdclient->stdout_file);
 }