From 39ed82a7040e93ce32e5a1cd9557175c611d0e2c Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 29 Apr 2016 14:05:24 +0000 Subject: Final parts of command hooks, add before- and after- hooks to each command. --- usr.bin/tmux/cmd-source-file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/tmux/cmd-source-file.c') diff --git a/usr.bin/tmux/cmd-source-file.c b/usr.bin/tmux/cmd-source-file.c index 9255b5537df..31a1eaca606 100644 --- a/usr.bin/tmux/cmd-source-file.c +++ b/usr.bin/tmux/cmd-source-file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-source-file.c,v 1.23 2015/12/13 21:53:57 nicm Exp $ */ +/* $OpenBSD: cmd-source-file.c,v 1.24 2016/04/29 14:05:24 nicm Exp $ */ /* * Copyright (c) 2008 Tiago Cunha @@ -49,6 +49,7 @@ cmd_source_file_exec(struct cmd *self, struct cmd_q *cmdq) char *cause; cmdq1 = cmdq_new(cmdq->client); + cmdq1->flags |= cmdq->flags & CMD_Q_NOHOOKS; cmdq1->emptyfn = cmd_source_file_done; cmdq1->data = cmdq; -- cgit v1.2.3-59-g8ed1b