mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-09 13:54:54 +02:00
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.
This commit is contained in:
13
paste.c
13
paste.c
@ -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)
|
||||
|
Reference in New Issue
Block a user