diff options
author | nicm <nicm> | 2015-04-27 16:25:57 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-04-27 16:25:57 +0000 |
commit | 95195f52584565483bf9850840f6d81cd88bf9b2 (patch) | |
tree | 440e88b83f3d9085e3c9ab5b8931106aa12e6905 /cmd-find-window.c | |
parent | a70762c9b50e9d9249fa9a56233c0df4129c82fc (diff) | |
download | rtmux-95195f52584565483bf9850840f6d81cd88bf9b2.tar.gz rtmux-95195f52584565483bf9850840f6d81cd88bf9b2.tar.bz2 rtmux-95195f52584565483bf9850840f6d81cd88bf9b2.zip |
Rewrite of the target resolution internals to be simpler and more
consistent but with much less duplication, but keeping the same internal
API. Also adds more readable aliases for some of the special tokens used
in targets (eg "{start}" instead of "^"). Some behaviours may have
changed, for example prefix matches now happen before fnmatch.
Diffstat (limited to 'cmd-find-window.c')
-rw-r--r-- | cmd-find-window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-find-window.c b/cmd-find-window.c index 25155f7b..64e092bf 100644 --- a/cmd-find-window.c +++ b/cmd-find-window.c @@ -143,7 +143,7 @@ cmd_find_window_exec(struct cmd *self, struct cmd_q *cmdq) const char *template; u_int i, match_flags; - if ((c = cmd_current_client(cmdq)) == NULL) { + if ((c = cmd_find_client(cmdq, NULL, 1)) == NULL) { cmdq_error(cmdq, "no client available"); return (CMD_RETURN_ERROR); } |