diff options
author | nicm <nicm> | 2018-08-02 11:44:07 +0000 |
---|---|---|
committer | nicm <nicm> | 2018-08-02 11:44:07 +0000 |
commit | 6048b0f48337b8d2359d9996a59665640278677c (patch) | |
tree | 1e6d7378f94d9d00bb721e5f1e81e957d548e949 /cmd-send-keys.c | |
parent | f12b8574155b12313afc63f7b6dd9baa261c9710 (diff) | |
download | rtmux-6048b0f48337b8d2359d9996a59665640278677c.tar.gz rtmux-6048b0f48337b8d2359d9996a59665640278677c.tar.bz2 rtmux-6048b0f48337b8d2359d9996a59665640278677c.zip |
Make key trees and some other bits static.
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r-- | cmd-send-keys.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c index 8d2c2608..6230ecf7 100644 --- a/cmd-send-keys.c +++ b/cmd-send-keys.c @@ -61,7 +61,7 @@ cmd_send_keys_inject(struct client *c, struct cmdq_item *item, key_code key) struct window_pane *wp = item->target.wp; struct session *s = item->target.s; struct key_table *table; - struct key_binding *bd, bd_find; + struct key_binding *bd; if (wp->mode == NULL || wp->mode->key_table == NULL) { if (options_get_number(wp->window->options, "xterm-keys")) @@ -71,8 +71,7 @@ cmd_send_keys_inject(struct client *c, struct cmdq_item *item, key_code key) } table = key_bindings_get_table(wp->mode->key_table(wp), 1); - bd_find.key = (key & ~KEYC_XTERM); - bd = RB_FIND(key_bindings, &table->key_bindings, &bd_find); + bd = key_bindings_get(table, key & ~KEYC_XTERM); if (bd != NULL) { table->references++; key_bindings_dispatch(bd, item, c, NULL, &item->target); |