diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-26 12:29:07 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-26 12:29:07 +0000 |
commit | 4ba3cf60beea7be93a1de674226f412e5fec1105 (patch) | |
tree | 9a86ea8ba56e33233e28217d36446605ddab4be8 /cmd-new-session.c | |
parent | 9f06104c3a56ad5ea2070317b776dfa84f213ffb (diff) | |
download | rtmux-4ba3cf60beea7be93a1de674226f412e5fec1105.tar.gz rtmux-4ba3cf60beea7be93a1de674226f412e5fec1105.tar.bz2 rtmux-4ba3cf60beea7be93a1de674226f412e5fec1105.zip |
Reorg window data structures. Add an intermediate data type (struct winlink) to hold index and make sessions hold a RB tree of them rather than a fixed array.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r-- | cmd-new-session.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c index 80f77490..aeff70bf 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -1,4 +1,4 @@ -/* $Id: cmd-new-session.c,v 1.13 2007-10-19 17:15:29 nicm Exp $ */ +/* $Id: cmd-new-session.c,v 1.14 2007-10-26 12:29:07 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -133,8 +133,8 @@ cmd_new_session_exec(void *ptr, struct cmd_ctx *ctx) if (c->session == NULL) fatalx("session_create failed"); if (data->winname != NULL) { - xfree(c->session->window->name); - c->session->window->name = xstrdup(data->winname); + xfree(c->session->curw->window->name); + c->session->curw->window->name = xstrdup(data->winname); } if (data->flag_detached) |