summaryrefslogtreecommitdiffstats
path: root/cmd-capture-pane.c
diff options
context:
space:
mode:
authornicm <nicm>2014-04-24 09:14:43 +0000
committernicm <nicm>2014-04-24 09:14:43 +0000
commitbec6c807cd580b003cd94b52a20caa2cbc7a0753 (patch)
tree99a3ae9d6e99ceb99da10ff388fa2c4957a505e2 /cmd-capture-pane.c
parent7ab2690be8a451d123b12906b729e163ea37e0dd (diff)
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 'cmd-capture-pane.c')
-rw-r--r--cmd-capture-pane.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c
index cf9a2f49..759063d1 100644
--- a/cmd-capture-pane.c
+++ b/cmd-capture-pane.c
@@ -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);