From 84e46525136481ba5bd60e73ae2fffdf74c0417c Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 3 May 2019 18:00:19 +0000 Subject: [PATCH] Use the right index for user-keys. --- tty-keys.c | 1 + 1 file changed, 1 insertion(+) 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);