mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Global paste buffers instead of per-session which renders copy-buffer useless.
As a consequence buffer-limit is now a server option.
This commit is contained in:
15
paste.c
15
paste.c
@ -1,4 +1,4 @@
|
||||
/* $Id: paste.c,v 1.15 2010-06-22 23:36:54 tcunha Exp $ */
|
||||
/* $Id: paste.c,v 1.16 2010-12-30 22:39:49 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -28,19 +28,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)
|
||||
|
Reference in New Issue
Block a user