summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-attach-session.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-12-15 13:43:08 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-12-15 13:43:08 +0000
commit72fa7bfbbe0566efbca0222fb21b3a0fc7a9e207 (patch)
treee163cd290a03604148cf197c79ca9eaefb437d7e /usr.bin/tmux/cmd-attach-session.c
parent9eaa7bdade2e4c4c770d6453375cf15c94f1d233 (diff)
Some hooks API changes to fire a hook while waiting another cmdq and
infrastructure that will be needed soon.
Diffstat (limited to 'usr.bin/tmux/cmd-attach-session.c')
-rw-r--r--usr.bin/tmux/cmd-attach-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-attach-session.c b/usr.bin/tmux/cmd-attach-session.c
index a80bf51259b..43ad4b7b85d 100644
--- a/usr.bin/tmux/cmd-attach-session.c
+++ b/usr.bin/tmux/cmd-attach-session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-attach-session.c,v 1.57 2015/12/14 00:31:54 nicm Exp $ */
+/* $OpenBSD: cmd-attach-session.c,v 1.58 2015/12/15 13:43:07 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -144,7 +144,7 @@ cmd_attach_session(struct cmd_q *cmdq, int dflag, int rflag, const char *cflag,
if (~c->flags & CLIENT_CONTROL)
proc_send(c->peer, MSG_READY, -1, NULL, 0);
- hooks_run(c->session->hooks, "client-attached", c);
+ hooks_run(c->session->hooks, c, "client-attached");
cmdq->client_exit = 0;
}
recalculate_sizes();