Remove freed keys from array.

This commit is contained in:
Nicholas Marriott 2007-10-23 10:25:57 +00:00
parent 64713e0511
commit 21c17da7e6
2 changed files with 3 additions and 2 deletions

1
TODO
View File

@ -49,7 +49,6 @@
- man page
- get rid of MAXNAMELEN limits (sessid)
- commands:
list clients (session, window, tty?)
rename sessions
swap windows
link/copy windows

View File

@ -1,4 +1,4 @@
/* $Id: key-bindings.c,v 1.10 2007-10-19 11:10:35 nicm Exp $ */
/* $Id: key-bindings.c,v 1.11 2007-10-23 10:25:57 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -65,6 +65,8 @@ key_bindings_remove(int key)
if (i == ARRAY_LENGTH(&key_bindings))
return;
ARRAY_REMOVE(&key_bindings, i);
cmd_free(bd->cmd);
xfree(bd);
}