Start of improved buffer code. Only set-buffer/show-buffer commands so far.

This commit is contained in:
Nicholas Marriott
2008-06-20 08:36:20 +00:00
parent af924e726a
commit 9798dcd4df
10 changed files with 483 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $Id: session.c,v 1.38 2008-06-18 22:21:51 nicm Exp $ */
/* $Id: session.c,v 1.39 2008-06-20 08:36:20 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -120,6 +120,7 @@ session_create(const char *name, const char *cmd, u_int sx, u_int sy)
s->curw = s->lastw = NULL;
RB_INIT(&s->windows);
TAILQ_INIT(&s->alerts);
paste_init_stack(&s->buffers);
options_init(&s->options, &global_options);
s->sx = sx;
@ -165,6 +166,7 @@ session_destroy(struct session *s)
session_alert_cancel(s, NULL);
options_free(&s->options);
paste_free_stack(&s->buffers);
while (!RB_EMPTY(&s->windows))
winlink_remove(&s->windows, RB_ROOT(&s->windows));