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/paste.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/paste.c')
-rw-r--r-- | usr.bin/tmux/paste.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/usr.bin/tmux/paste.c b/usr.bin/tmux/paste.c index 01d4416213f..f6cf1c7c1ce 100644 --- a/usr.bin/tmux/paste.c +++ b/usr.bin/tmux/paste.c @@ -1,4 +1,4 @@ -/* $OpenBSD: paste.c,v 1.9 2010/06/21 21:44:09 nicm Exp $ */ +/* $OpenBSD: paste.c,v 1.10 2010/12/30 23:16:18 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -29,19 +29,6 @@ * string! */ -void -paste_init_stack(struct paste_stack *ps) -{ - ARRAY_INIT(ps); -} - -void -paste_free_stack(struct paste_stack *ps) -{ - while (paste_free_top(ps) == 0) - ; -} - /* Return each item of the stack in turn. */ struct paste_buffer * paste_walk_stack(struct paste_stack *ps, uint *idx) |