summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-11-25 07:58:56 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-11-25 07:58:56 +0000
commitcbf25632e6399360e6f66b8f653687f88ce3f0e2 (patch)
tree9e68c3475989149ef302866495f60843746df346 /usr.bin/tmux/client.c
parent26917ee0045e427162f14e0c03451b6283f1c058 (diff)
Don't print error if none to print.
Diffstat (limited to 'usr.bin/tmux/client.c')
-rw-r--r--usr.bin/tmux/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/client.c b/usr.bin/tmux/client.c
index f768dab0198..f17494d276b 100644
--- a/usr.bin/tmux/client.c
+++ b/usr.bin/tmux/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.111 2015/11/24 23:22:51 nicm Exp $ */
+/* $OpenBSD: client.c,v 1.112 2015/11/25 07:58:55 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -373,7 +373,7 @@ client_main(struct event_base *base, int argc, char **argv, int flags,
printf("%%exit\n");
printf("\033\\");
tcsetattr(STDOUT_FILENO, TCSAFLUSH, &saved_tio);
- } else
+ } else if (client_exitreason != CLIENT_EXIT_NONE)
fprintf(stderr, "%s\n", client_exit_message());
setblocking(STDIN_FILENO, 1);
return (client_exitval);