summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/status.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-12-30 23:16:18 +0000
committernicm <nicm@openbsd.org>2010-12-30 23:16:18 +0000
commiteca05f1fc0ec6fc9c207193ddcba9f00995f6fdc (patch)
treecdf0e9851374e23108b26ce7898d7395f78cbbb4 /usr.bin/tmux/status.c
parentbe more cynical about boot-time entropy, and fold time and entropy data in. (diff)
downloadwireguard-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/status.c')
-rw-r--r--usr.bin/tmux/status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c
index 6c270a27417..6857456e9bb 100644
--- a/usr.bin/tmux/status.c
+++ b/usr.bin/tmux/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.67 2010/12/30 21:35:17 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.68 2010/12/30 23:16:18 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -983,7 +983,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];