aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicm <nicm>2019-05-03 18:00:19 +0000
committernicm <nicm>2019-05-03 18:00:19 +0000
commit84e46525136481ba5bd60e73ae2fffdf74c0417c (patch)
tree7c73cfc24c8c18c33ff304aca67aeeaec8f0fa2b
parentfc3d85e34bf323762ac000b44bfd4a6b33aad37c (diff)
downloadrtmux-84e46525136481ba5bd60e73ae2fffdf74c0417c.tar.gz
rtmux-84e46525136481ba5bd60e73ae2fffdf74c0417c.tar.bz2
rtmux-84e46525136481ba5bd60e73ae2fffdf74c0417c.zip
Use the right index for user-keys.
-rw-r--r--tty-keys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tty-keys.c b/tty-keys.c
index 1aecbcb2..90f34877 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -429,6 +429,7 @@ tty_keys_build(struct tty *tty)
if (o != NULL) {
a = options_array_first(o);
while (a != NULL) {
+ i = options_array_item_index(a);
ov = options_array_item_value(a);
tty_keys_add(tty, ov->string, KEYC_USER + i);
a = options_array_next(a);