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.
This commit is contained in:
Nicholas Marriott
2011-03-27 20:27:26 +00:00
parent d74e5bffba
commit 808502ac3d
6 changed files with 140 additions and 14 deletions

View File

@ -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);