From 5b2ff571492677ff42b716f0dd969f53c4aa88d6 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 13 Apr 2021 16:00:47 +0000 Subject: [PATCH] Include modifiers when looking up an individual key. --- usr.bin/tmux/cmd-list-keys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/cmd-list-keys.c b/usr.bin/tmux/cmd-list-keys.c index 918c2686874..03268e5809b 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.62 2021/04/12 09:36:12 nicm Exp $ */ +/* $OpenBSD: cmd-list-keys.c,v 1.63 2021/04/13 16:00:47 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -165,7 +165,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item) cmdq_error(item, "invalid key: %s", args->argv[0]); return (CMD_RETURN_ERROR); } - only &= KEYC_MASK_KEY; + only &= (KEYC_MASK_KEY|KEYC_MASK_MODIFIERS); } tablename = args_get(args, 'T'); -- 2.20.1