diff options
author | 2017-08-30 10:33:57 +0000 | |
---|---|---|
committer | 2017-08-30 10:33:57 +0000 | |
commit | 0772530e7a21dd30554c202aa0d10ae3bce30064 (patch) | |
tree | 2ee6e2dc911acaedc290aa8577975ae4aeea7924 /usr.bin/tmux/cmd-queue.c | |
parent | No need for NULL checks before afree() (diff) | |
download | wireguard-openbsd-0772530e7a21dd30554c202aa0d10ae3bce30064.tar.xz wireguard-openbsd-0772530e7a21dd30554c202aa0d10ae3bce30064.zip |
Pass flags into cmd_find_from_* to fix prefer-unattached, reported by
Thomas Sattler.
Diffstat (limited to 'usr.bin/tmux/cmd-queue.c')
-rw-r--r-- | usr.bin/tmux/cmd-queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-queue.c b/usr.bin/tmux/cmd-queue.c index 8770c516914..a5896acab47 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.57 2017/06/16 15:12:38 nicm Exp $ */ +/* $OpenBSD: cmd-queue.c,v 1.58 2017/08/30 10:33:57 nicm Exp $ */ /* * Copyright (c) 2013 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -241,7 +241,7 @@ cmdq_fire_command(struct cmdq_item *item) fsp = &item->target; else if (cmd_find_valid_state(&item->shared->current)) fsp = &item->shared->current; - else if (cmd_find_from_client(&fs, item->client) == 0) + else if (cmd_find_from_client(&fs, item->client, 0) == 0) fsp = &fs; else goto out; |