mirror of
https://github.com/tmux/tmux.git
synced 2024-11-18 02:18:53 +00:00
Whoops, add keys in the right place in the tree.
This commit is contained in:
parent
ca1ee21702
commit
7fef12b491
@ -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>
|
* 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) {
|
if ((bd = key_bindings_lookup(key)) == NULL) {
|
||||||
bd = xmalloc(sizeof *bd);
|
bd = xmalloc(sizeof *bd);
|
||||||
|
bd->key = key;
|
||||||
SPLAY_INSERT(key_bindings, &key_bindings, bd);
|
SPLAY_INSERT(key_bindings, &key_bindings, bd);
|
||||||
} else
|
} else
|
||||||
cmd_free(bd->cmd);
|
cmd_free(bd->cmd);
|
||||||
|
|
||||||
bd->key = key;
|
|
||||||
bd->cmd = cmd;
|
bd->cmd = cmd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user