diff options
author | 2019-05-18 21:14:10 +0000 | |
---|---|---|
committer | 2019-05-18 21:14:10 +0000 | |
commit | f3364c199b677c2f44b4adf2d218efc41adb1bcc (patch) | |
tree | 89908e58e738db493b614ecb97f0107a8877c1db /usr.bin/tmux/cmd-queue.c | |
parent | Unveil tetris. (diff) | |
download | wireguard-openbsd-f3364c199b677c2f44b4adf2d218efc41adb1bcc.tar.xz wireguard-openbsd-f3364c199b677c2f44b4adf2d218efc41adb1bcc.zip |
Move the single command flag (CMD_CONTROL) into the shared flags.
Diffstat (limited to 'usr.bin/tmux/cmd-queue.c')
-rw-r--r-- | usr.bin/tmux/cmd-queue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-queue.c b/usr.bin/tmux/cmd-queue.c index 903a88026d4..68b5f1b2916 100644 --- a/usr.bin/tmux/cmd-queue.c +++ b/usr.bin/tmux/cmd-queue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-queue.c,v 1.65 2019/05/03 18:59:58 nicm Exp $ */ +/* $OpenBSD: cmd-queue.c,v 1.66 2019/05/18 21:14:10 nicm Exp $ */ /* * Copyright (c) 2013 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -266,13 +266,14 @@ static enum cmd_retval cmdq_fire_command(struct cmdq_item *item) { struct client *c = item->client; + struct cmdq_shared *shared = item->shared; struct cmd *cmd = item->cmd; const struct cmd_entry *entry = cmd->entry; enum cmd_retval retval; struct cmd_find_state *fsp, fs; int flags; - flags = !!(cmd->flags & CMD_CONTROL); + flags = !!(shared->flags & CMDQ_SHARED_CONTROL); cmdq_guard(item, "begin", flags); if (item->client == NULL) |