mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 15:26:58 +00:00
Use the right index for user-keys.
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user