Make list-keys only use a message if -1 is given, otherwise behave like

other commands (stdout or mode).
This commit is contained in:
nicm
2026-06-10 18:32:33 +00:00
parent 4702e58ee5
commit 7ec94fda08

View File

@@ -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);