From 7ec94fda08fd05545d4b6c8c6f5b4a7ce0f303d7 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 10 Jun 2026 18:32:33 +0000 Subject: [PATCH] Make list-keys only use a message if -1 is given, otherwise behave like other commands (stdout or mode). --- cmd-list-keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-list-keys.c b/cmd-list-keys.c index d8065259..c20768f3 100644 --- a/cmd-list-keys.c +++ b/cmd-list-keys.c @@ -237,7 +237,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item) cmd_list_keys_format_add_key_binding(ft, l[i], prefix); line = format_expand(ft, template); - if ((single && tc != NULL) || n == 1) + if (single && tc != NULL && (~tc->flags & CLIENT_CONTROL)) status_message_set(tc, -1, 1, 0, 0, "%s", line); else if (*line != '\0') cmdq_print(item, "%s", line);