summaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-03-27 20:27:26 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-03-27 20:27:26 +0000
commit808502ac3d86193d9a371728b2ea2055100c76c3 (patch)
tree18ba306e7e15c1a0a04108bc139a0938cd4ce96e /server.c
parentd74e5bffbad33df742749b5983479dc2cfac273b (diff)
Give each pane created in a tmux server a unique id (starting from 0),
put it in the TMUX_PANE environment variable and accept it as a target. Suggested by and with testing and tweaks from Ben Boeckel.
Diffstat (limited to 'server.c')
-rw-r--r--server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.c b/server.c
index 72f3880d..a548a694 100644
--- a/server.c
+++ b/server.c
@@ -143,6 +143,7 @@ server_start(void)
log_debug("server started, pid %ld", (long) getpid());
ARRAY_INIT(&windows);
+ RB_INIT(&all_window_panes);
ARRAY_INIT(&clients);
ARRAY_INIT(&dead_clients);
RB_INIT(&sessions);