summaryrefslogtreecommitdiffstats
path: root/key-bindings.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-06 14:47:56 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-06 14:47:56 +0000
commit7fef12b4910fccf1b3c390f39e620448e5a9415b (patch)
treedc22c932e08c0fa2dbc36878ba8c750841c53edd /key-bindings.c
parentca1ee217023b431bac179023c2b70e13427c4ab0 (diff)
Whoops, add keys in the right place in the tree.
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/key-bindings.c b/key-bindings.c
index 40f3a901..7c0698d7 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -1,4 +1,4 @@
-/* $Id: key-bindings.c,v 1.39 2009-01-06 14:10:32 nicm Exp $ */
+/* $Id: key-bindings.c,v 1.40 2009-01-06 14:47:56 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -50,11 +50,10 @@ key_bindings_add(int key, struct cmd *cmd)
if ((bd = key_bindings_lookup(key)) == NULL) {
bd = xmalloc(sizeof *bd);
+ bd->key = key;
SPLAY_INSERT(key_bindings, &key_bindings, bd);
} else
cmd_free(bd->cmd);
-
- bd->key = key;
bd->cmd = cmd;
}