summaryrefslogtreecommitdiffstats
path: root/key-bindings.c
diff options
context:
space:
mode:
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/key-bindings.c b/key-bindings.c
index 32e81e94..a3f7fb42 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -187,9 +187,10 @@ key_bindings_init(void)
cmd = xmalloc(sizeof *cmd);
cmd->entry = table[i].entry;
- cmd->data = NULL;
- if (cmd->entry->init != NULL)
- cmd->entry->init(cmd, table[i].key);
+ if (cmd->entry->key_binding != NULL)
+ cmd->entry->key_binding(cmd, table[i].key);
+ else
+ cmd->args = args_create(0);
TAILQ_INSERT_HEAD(&cmdlist->list, cmd, qentry);
key_bindings_add(