diff options
author | Thomas Adam <thomas@xteddy.org> | 2014-04-24 12:59:00 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2014-04-24 12:59:00 +0100 |
commit | 3f54c9292fc8ee147d45256e430fbf85fab98128 (patch) | |
tree | afe1e1fe8ca82a88e7e6bbd94fb877f58c2e69c4 /cmd-capture-pane.c | |
parent | 953c3ef47a1933d38308075c1bacc7ea8d38301b (diff) | |
parent | bec6c807cd580b003cd94b52a20caa2cbc7a0753 (diff) | |
download | rtmux-3f54c9292fc8ee147d45256e430fbf85fab98128.tar.gz rtmux-3f54c9292fc8ee147d45256e430fbf85fab98128.tar.bz2 rtmux-3f54c9292fc8ee147d45256e430fbf85fab98128.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-capture-pane.c')
-rw-r--r-- | cmd-capture-pane.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c index e157e3cb..49614632 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); |