From b3b7912d6dc33c6816ceb1bd0c9355e73e31d8ec Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 13 Apr 2021 16:00:48 +0000 Subject: Include modifiers when looking up an individual key. --- usr.bin/tmux/cmd-list-keys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') 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'); -- cgit v1.2.3