summaryrefslogtreecommitdiffstats
path: root/cmd-find-window.c
diff options
context:
space:
mode:
authornicm <nicm>2015-04-27 16:25:57 +0000
committernicm <nicm>2015-04-27 16:25:57 +0000
commit95195f52584565483bf9850840f6d81cd88bf9b2 (patch)
tree440e88b83f3d9085e3c9ab5b8931106aa12e6905 /cmd-find-window.c
parenta70762c9b50e9d9249fa9a56233c0df4129c82fc (diff)
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.c2
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);
}