aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-07-28 23:11:18 +0000
committerTiago Cunha <tcunha@gmx.com>2009-07-28 23:11:18 +0000
commitde7483a1141428a8331113fc7277d3bf67d51a13 (patch)
tree0ec364a0cb114e23b18a97b2694f35d40f980f55 /server.c
parentd9dcc5ed44a5cc9f0129af3d2f444c043bcf1ab7 (diff)
downloadrtmux-de7483a1141428a8331113fc7277d3bf67d51a13.tar.gz
rtmux-de7483a1141428a8331113fc7277d3bf67d51a13.tar.bz2
rtmux-de7483a1141428a8331113fc7277d3bf67d51a13.zip
Sync OpenBSD patchset 192:
Next step towards customisable mode keys: build each default table of keys into a named tree on start and use that for lookups. Also add command to string translation tables and modify list-keys to show the mode key bindings (new -t argument).
Diffstat (limited to 'server.c')
-rw-r--r--server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server.c b/server.c
index 5a4031ea..aa5a4292 100644
--- a/server.c
+++ b/server.c
@@ -1,4 +1,4 @@
-/* $Id: server.c,v 1.163 2009-07-25 08:52:04 tcunha Exp $ */
+/* $Id: server.c,v 1.164 2009-07-28 23:11:18 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -161,6 +161,7 @@ server_start(char *path)
ARRAY_INIT(&windows);
ARRAY_INIT(&clients);
ARRAY_INIT(&sessions);
+ mode_key_init_trees();
key_bindings_init();
utf8_build();
@@ -384,6 +385,7 @@ server_main(int srv_fd)
}
ARRAY_FREE(&clients);
+ mode_key_free_trees();
key_bindings_free();
close(srv_fd);