summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-run-shell.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-04-21 20:26:34 +0000
committernicm <nicm@openbsd.org>2017-04-21 20:26:34 +0000
commit93e732aabece4c2ef75ec9f2a56d777a036b3a8f (patch)
tree94a5a050dda2622774a4c16e6794e7a36d192831 /usr.bin/tmux/cmd-run-shell.c
parentKey needs to be initialized to zero now it has flags in it. (diff)
downloadwireguard-openbsd-93e732aabece4c2ef75ec9f2a56d777a036b3a8f.tar.xz
wireguard-openbsd-93e732aabece4c2ef75ec9f2a56d777a036b3a8f.zip
Make the cmd_find_* functions more obvious when looking for a client,
rather than having it inside other functions. Should be no change to the way targets are resolved just yet.
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 665f0cb97ea..c1624403509 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.47 2017/04/20 09:20:22 nicm Exp $ */
+/* $OpenBSD: cmd-run-shell.c,v 1.48 2017/04/21 20:26:34 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_current (&fs, NULL, CMD_FIND_QUIET) != 0)
+ if (cmd_find_from_nothing(&fs) != 0)
return;
wp = fs.wp;
if (wp == NULL)