diff options
author | 2017-04-21 20:26:34 +0000 | |
---|---|---|
committer | 2017-04-21 20:26:34 +0000 | |
commit | 93e732aabece4c2ef75ec9f2a56d777a036b3a8f (patch) | |
tree | 94a5a050dda2622774a4c16e6794e7a36d192831 /usr.bin/tmux/cmd-run-shell.c | |
parent | Key needs to be initialized to zero now it has flags in it. (diff) | |
download | wireguard-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.c | 4 |
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) |