aboutsummaryrefslogtreecommitdiff
path: root/cmd-display-message.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-display-message.c')
-rw-r--r--cmd-display-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-display-message.c b/cmd-display-message.c
index 0a61fd1e..ee9eafe9 100644
--- a/cmd-display-message.c
+++ b/cmd-display-message.c
@@ -78,7 +78,7 @@ cmd_display_message_exec(struct cmd *self, struct cmd_q *cmdq)
if (c == NULL)
return (CMD_RETURN_ERROR);
} else {
- c = cmd_current_client(cmdq);
+ c = cmd_find_client(cmdq, NULL, 1);
if (c == NULL && !args_has(self->args, 'p')) {
cmdq_error(cmdq, "no client available");
return (CMD_RETURN_ERROR);