diff options
author | 2010-12-30 23:16:18 +0000 | |
---|---|---|
committer | 2010-12-30 23:16:18 +0000 | |
commit | eca05f1fc0ec6fc9c207193ddcba9f00995f6fdc (patch) | |
tree | cdf0e9851374e23108b26ce7898d7395f78cbbb4 /usr.bin/tmux/session.c | |
parent | be more cynical about boot-time entropy, and fold time and entropy data in. (diff) | |
download | wireguard-openbsd-eca05f1fc0ec6fc9c207193ddcba9f00995f6fdc.tar.xz wireguard-openbsd-eca05f1fc0ec6fc9c207193ddcba9f00995f6fdc.zip |
Change from a per-session stack of buffers to one global stack which is
much more convenient and also simplifies lot of code. This renders
copy-buffer useless and makes buffer-limit now a server option.
By Tiago Cunha.
Diffstat (limited to 'usr.bin/tmux/session.c')
-rw-r--r-- | usr.bin/tmux/session.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/tmux/session.c b/usr.bin/tmux/session.c index e548bf280fd..860fc9fa25e 100644 --- a/usr.bin/tmux/session.c +++ b/usr.bin/tmux/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.25 2010/12/21 22:37:59 nicm Exp $ */ +/* $OpenBSD: session.c,v 1.26 2010/12/30 23:16:18 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -105,8 +105,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) @@ -155,7 +153,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)); |