aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-12-30 22:39:49 +0000
committerTiago Cunha <tcunha@gmx.com>2010-12-30 22:39:49 +0000
commit9ebee6aef8aab237314e167f0d0412ddc5ebf513 (patch)
tree61d060770b8af5e2a467badb74a3aab4d71a6372 /status.c
parent095e1b410a31166d1f37e8a6ff99e7bb666737ad (diff)
downloadrtmux-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 'status.c')
-rw-r--r--status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/status.c b/status.c
index 0ed21153..367eac84 100644
--- a/status.c
+++ b/status.c
@@ -1,4 +1,4 @@
-/* $Id: status.c,v 1.151 2010-12-11 16:15:02 nicm Exp $ */
+/* $Id: status.c,v 1.152 2010-12-30 22:39:49 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -996,7 +996,7 @@ status_prompt_key(struct client *c, int key)
c->flags |= CLIENT_STATUS;
break;
case MODEKEYEDIT_PASTE:
- if ((pb = paste_get_top(&c->session->buffers)) == NULL)
+ if ((pb = paste_get_top(&global_buffers)) == NULL)
break;
for (n = 0; n < pb->size; n++) {
ch = (u_char) pb->data[n];