diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-07-05 16:24:13 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-07-05 16:24:13 +0100 |
commit | e496a548d7b07c9a4be9ce8e750cf5423e3bafe3 (patch) | |
tree | 26b867940c5174e44894050a493a70a5118ba968 /cmd-queue.c | |
parent | 3d39b18e319cdd96bf25debcfcf52c03120e3d8e (diff) | |
parent | c7a121cfc0137c907b7bfb0c3fd1bdee395af8aa (diff) | |
download | rtmux-e496a548d7b07c9a4be9ce8e750cf5423e3bafe3.tar.gz rtmux-e496a548d7b07c9a4be9ce8e750cf5423e3bafe3.tar.bz2 rtmux-e496a548d7b07c9a4be9ce8e750cf5423e3bafe3.zip |
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
Diffstat (limited to 'cmd-queue.c')
-rw-r--r-- | cmd-queue.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd-queue.c b/cmd-queue.c index 671f1e95..243f73dd 100644 --- a/cmd-queue.c +++ b/cmd-queue.c @@ -157,14 +157,17 @@ int cmdq_guard(struct cmd_q *cmdq, const char *guard) { struct client *c = cmdq->client; + int flags; if (c == NULL) return 0; if (!(c->flags & CLIENT_CONTROL)) return 0; - evbuffer_add_printf(c->stdout_data, "%%%s %ld %u\n", guard, - (long) cmdq->time, cmdq->number); + flags = !!(cmdq->cmd->flags & CMD_CONTROL); + + evbuffer_add_printf(c->stdout_data, "%%%s %ld %u %d\n", guard, + (long) cmdq->time, cmdq->number, flags); server_push_stdout(c); return 1; } |