summaryrefslogtreecommitdiffstats
path: root/cmd-queue.c
diff options
context:
space:
mode:
authorNicolas Viennot <nicolas@viennot.biz>2013-06-11 22:45:33 -0400
committerNicolas Viennot <nicolas@viennot.biz>2013-06-11 22:52:21 -0400
commit35daf6d8058a3ee68b6007df1d594323cde9debe (patch)
treebca39e763de8b0a754a0c8c3f364943052466b54 /cmd-queue.c
parent839c4e3dd9b7d5ebfaacbc5a446bcb9ef6f9b63b (diff)
Replication of bind/unbind commands
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd-queue.c b/cmd-queue.c
index c5f75f40..8a274305 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -23,6 +23,7 @@
#include <time.h>
#include "tmux.h"
+#include "tmate.h"
/* Create new command queue. */
struct cmd_q *
@@ -225,6 +226,11 @@ cmdq_continue(struct cmd_q *cmdq)
cmdq->time = time(NULL);
cmdq->number++;
+#ifdef TMATE
+ if (tmate_should_replicate_cmd(cmdq->cmd->entry))
+ tmate_cmd(s);
+#endif
+
guard = cmdq_guard(cmdq, "begin");
retval = cmdq->cmd->entry->exec(cmdq->cmd, cmdq);
if (guard) {