mirror of https://github.com/tmux/tmux.git
Use the right index for user-keys.
parent
fc3d85e34b
commit
84e4652513
|
@ -429,6 +429,7 @@ tty_keys_build(struct tty *tty)
|
||||||
if (o != NULL) {
|
if (o != NULL) {
|
||||||
a = options_array_first(o);
|
a = options_array_first(o);
|
||||||
while (a != NULL) {
|
while (a != NULL) {
|
||||||
|
i = options_array_item_index(a);
|
||||||
ov = options_array_item_value(a);
|
ov = options_array_item_value(a);
|
||||||
tty_keys_add(tty, ov->string, KEYC_USER + i);
|
tty_keys_add(tty, ov->string, KEYC_USER + i);
|
||||||
a = options_array_next(a);
|
a = options_array_next(a);
|
||||||
|
|
Loading…
Reference in New Issue