diff --git a/usr.bin/tmux/cmd-list-keys.c b/usr.bin/tmux/cmd-list-keys.c index 5f0848e327c..c8be0cb7b99 100644 --- a/usr.bin/tmux/cmd-list-keys.c +++ b/usr.bin/tmux/cmd-list-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-list-keys.c,v 1.75 2026/06/05 08:04:03 nicm Exp $ */ +/* $OpenBSD: cmd-list-keys.c,v 1.76 2026/06/10 18:32:33 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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);