summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-capture-pane.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2014-04-24 09:14:43 +0000
committernicm <nicm@openbsd.org>2014-04-24 09:14:43 +0000
commitca6784669ed926e64c92bbcc7839f5934b2c6817 (patch)
tree012b99d276f5b0546900d406410d17f6959985a7 /usr.bin/tmux/cmd-capture-pane.c
parentThe switch statement given/when was introduced in Perl 5.10 and got (diff)
downloadwireguard-openbsd-ca6784669ed926e64c92bbcc7839f5934b2c6817.tar.xz
wireguard-openbsd-ca6784669ed926e64c92bbcc7839f5934b2c6817.zip
There is no longer a need for a paste_stack struct or for global_buffers
to be global. Move to paste.c.
Diffstat (limited to 'usr.bin/tmux/cmd-capture-pane.c')
-rw-r--r--usr.bin/tmux/cmd-capture-pane.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-capture-pane.c b/usr.bin/tmux/cmd-capture-pane.c
index d574edc7657..68f17aa15ff 100644
--- a/usr.bin/tmux/cmd-capture-pane.c
+++ b/usr.bin/tmux/cmd-capture-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-capture-pane.c,v 1.25 2013/10/10 12:00:18 nicm Exp $ */
+/* $OpenBSD: cmd-capture-pane.c,v 1.26 2014/04/24 09:14:43 nicm Exp $ */
/*
* Copyright (c) 2009 Jonathan Alvarado <radobobo@users.sourceforge.net>
@@ -194,7 +194,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_q *cmdq)
} else {
limit = options_get_number(&global_options, "buffer-limit");
if (!args_has(args, 'b')) {
- paste_add(&global_buffers, buf, len, limit);
+ paste_add(buf, len, limit);
return (CMD_RETURN_NORMAL);
}
@@ -206,7 +206,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_q *cmdq)
return (CMD_RETURN_ERROR);
}
- if (paste_replace(&global_buffers, buffer, buf, len) != 0) {
+ if (paste_replace(buffer, buf, len) != 0) {
cmdq_error(cmdq, "no buffer %d", buffer);
free(buf);
return (CMD_RETURN_ERROR);