Use the right index for user-keys.

pull/1731/head
nicm 2019-05-03 18:00:19 +00:00
parent fc3d85e34b
commit 84e4652513
1 changed files with 1 additions and 0 deletions

View File

@ -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);