summaryrefslogtreecommitdiffstats
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2018-08-02 11:44:07 +0000
committernicm <nicm>2018-08-02 11:44:07 +0000
commit6048b0f48337b8d2359d9996a59665640278677c (patch)
tree1e6d7378f94d9d00bb721e5f1e81e957d548e949 /cmd-send-keys.c
parentf12b8574155b12313afc63f7b6dd9baa261c9710 (diff)
Make key trees and some other bits static.
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c5
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);