summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-switch-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-12-23 00:12:58 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-12-23 00:12:58 +0000
commitcbed091fb1c6d0aedaf6c4c80c43c2c747fb5487 (patch)
tree2d0f78608b32541b0b2aa6b522cbca721e7d2113 /usr.bin/tmux/cmd-switch-client.c
parent3b0ffdfc72b9d7b6ad81fd7e1a785ada06f1bfd1 (diff)
Repair switch-client -l and switch-client with a window target.
Diffstat (limited to 'usr.bin/tmux/cmd-switch-client.c')
-rw-r--r--usr.bin/tmux/cmd-switch-client.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-switch-client.c b/usr.bin/tmux/cmd-switch-client.c
index d9264b11e12..95cdf513e99 100644
--- a/usr.bin/tmux/cmd-switch-client.c
+++ b/usr.bin/tmux/cmd-switch-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-switch-client.c,v 1.40 2015/12/14 00:31:54 nicm Exp $ */
+/* $OpenBSD: cmd-switch-client.c,v 1.41 2015/12/23 00:12:57 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -90,10 +90,9 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq)
cmdq_error(cmdq, "can't find last session");
return (CMD_RETURN_ERROR);
}
+ } else {
if (cmdq->client == NULL)
return (CMD_RETURN_NORMAL);
-
- s = state->tflag.s;
if (state->tflag.wl != NULL) {
wp = state->tflag.wp;
if (wp != NULL)