summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-12-30 22:39:49 +0000
committerTiago Cunha <tcunha@gmx.com>2010-12-30 22:39:49 +0000
commit9ebee6aef8aab237314e167f0d0412ddc5ebf513 (patch)
tree61d060770b8af5e2a467badb74a3aab4d71a6372 /session.c
parent095e1b410a31166d1f37e8a6ff99e7bb666737ad (diff)
Global paste buffers instead of per-session which renders copy-buffer useless.
As a consequence buffer-limit is now a server option.
Diffstat (limited to 'session.c')
-rw-r--r--session.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/session.c b/session.c
index 25f0ef53..da2adbe1 100644
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
-/* $Id: session.c,v 1.83 2010-12-22 15:36:44 tcunha Exp $ */
+/* $Id: session.c,v 1.84 2010-12-30 22:39:49 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -104,8 +104,6 @@ session_create(const char *name, const char *cmd, const char *cwd,
TAILQ_INIT(&s->lastw);
RB_INIT(&s->windows);
- paste_init_stack(&s->buffers);
-
options_init(&s->options, &global_s_options);
environ_init(&s->environ);
if (env != NULL)
@@ -154,7 +152,6 @@ session_destroy(struct session *s)
session_group_remove(s);
environ_free(&s->environ);
options_free(&s->options);
- paste_free_stack(&s->buffers);
while (!TAILQ_EMPTY(&s->lastw))
winlink_stack_remove(&s->lastw, TAILQ_FIRST(&s->lastw));