summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-run-shell.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-08-30 10:33:57 +0000
committernicm <nicm@openbsd.org>2017-08-30 10:33:57 +0000
commit0772530e7a21dd30554c202aa0d10ae3bce30064 (patch)
tree2ee6e2dc911acaedc290aa8577975ae4aeea7924 /usr.bin/tmux/cmd-run-shell.c
parentNo need for NULL checks before afree() (diff)
downloadwireguard-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-run-shell.c')
-rw-r--r--usr.bin/tmux/cmd-run-shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-run-shell.c b/usr.bin/tmux/cmd-run-shell.c
index 18cd0db6dd5..bb80e2c95db 100644
--- a/usr.bin/tmux/cmd-run-shell.c
+++ b/usr.bin/tmux/cmd-run-shell.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-run-shell.c,v 1.50 2017/05/30 21:44:59 nicm Exp $ */
+/* $OpenBSD: cmd-run-shell.c,v 1.51 2017/08/30 10:33:57 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -68,7 +68,7 @@ cmd_run_shell_print(struct job *job, const char *msg)
cmdq_print(cdata->item, "%s", msg);
return;
}
- if (cmd_find_from_nothing(&fs) != 0)
+ if (cmd_find_from_nothing(&fs, 0) != 0)
return;
wp = fs.wp;
if (wp == NULL)