summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/key-bindings.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-05-20 07:11:45 +0000
committernicm <nicm@openbsd.org>2020-05-20 07:11:45 +0000
commit7610b3095b4ef5fb73bbfa471b1f5bfd7fc02ec1 (patch)
tree8cbed271f092077e73a95305adad3d3f810e216b /usr.bin/tmux/key-bindings.c
parentMake sure that we add our OpenBSD specific defines on PowerPC64 targets. (diff)
downloadwireguard-openbsd-7610b3095b4ef5fb73bbfa471b1f5bfd7fc02ec1.tar.xz
wireguard-openbsd-7610b3095b4ef5fb73bbfa471b1f5bfd7fc02ec1.zip
Fix a couple more places where the key flags need to be masked off.
Diffstat (limited to 'usr.bin/tmux/key-bindings.c')
-rw-r--r--usr.bin/tmux/key-bindings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/key-bindings.c b/usr.bin/tmux/key-bindings.c
index dae15398c1b..1c2cc0b2eb6 100644
--- a/usr.bin/tmux/key-bindings.c
+++ b/usr.bin/tmux/key-bindings.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key-bindings.c,v 1.127 2020/05/16 16:35:13 nicm Exp $ */
+/* $OpenBSD: key-bindings.c,v 1.128 2020/05/20 07:11:45 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -197,7 +197,7 @@ key_bindings_add(const char *name, key_code key, const char *note, int repeat,
}
bd = xcalloc(1, sizeof *bd);
- bd->key = key;
+ bd->key = (key & ~KEYC_MASK_FLAGS);
if (note != NULL)
bd->note = xstrdup(note);
RB_INSERT(key_bindings, &table->key_bindings, bd);