diff options
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); } |