diff options
author | Tiago Cunha <tcunha@gmx.com> | 2010-12-30 22:39:49 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2010-12-30 22:39:49 +0000 |
commit | 9ebee6aef8aab237314e167f0d0412ddc5ebf513 (patch) | |
tree | 61d060770b8af5e2a467badb74a3aab4d71a6372 /cmd-choose-buffer.c | |
parent | 095e1b410a31166d1f37e8a6ff99e7bb666737ad (diff) | |
download | rtmux-9ebee6aef8aab237314e167f0d0412ddc5ebf513.tar.gz rtmux-9ebee6aef8aab237314e167f0d0412ddc5ebf513.tar.bz2 rtmux-9ebee6aef8aab237314e167f0d0412ddc5ebf513.zip |
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 'cmd-choose-buffer.c')
-rw-r--r-- | cmd-choose-buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-choose-buffer.c b/cmd-choose-buffer.c index 12bd02e4..52974717 100644 --- a/cmd-choose-buffer.c +++ b/cmd-choose-buffer.c @@ -1,4 +1,4 @@ -/* $Id: cmd-choose-buffer.c,v 1.1 2010-06-22 23:35:20 tcunha Exp $ */ +/* $Id: cmd-choose-buffer.c,v 1.2 2010-12-30 22:39:49 tcunha Exp $ */ /* * Copyright (c) 2010 Nicholas Marriott <nicm@users.sourceforge.net> @@ -67,14 +67,14 @@ cmd_choose_buffer_exec(struct cmd *self, struct cmd_ctx *ctx) if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL) return (-1); - if (paste_get_top(&s->buffers) == NULL) + if (paste_get_top(&global_buffers) == NULL) return (0); if (window_pane_set_mode(wl->window->active, &window_choose_mode) != 0) return (0); idx = 0; - while ((pb = paste_walk_stack(&s->buffers, &idx)) != NULL) { + while ((pb = paste_walk_stack(&global_buffers, &idx)) != NULL) { tmp = paste_print(pb, 50); window_choose_add(wl->window->active, idx - 1, "%u: %zu bytes: \"%s\"", idx - 1, pb->size, tmp); |