summaryrefslogtreecommitdiffstats
path: root/cmd-save-buffer.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2014-04-24 12:59:00 +0100
committerThomas Adam <thomas@xteddy.org>2014-04-24 12:59:00 +0100
commit3f54c9292fc8ee147d45256e430fbf85fab98128 (patch)
treeafe1e1fe8ca82a88e7e6bbd94fb877f58c2e69c4 /cmd-save-buffer.c
parent953c3ef47a1933d38308075c1bacc7ea8d38301b (diff)
parentbec6c807cd580b003cd94b52a20caa2cbc7a0753 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-save-buffer.c')
-rw-r--r--cmd-save-buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-save-buffer.c b/cmd-save-buffer.c
index f08f80c7..b5ca62ee 100644
--- a/cmd-save-buffer.c
+++ b/cmd-save-buffer.c
@@ -65,7 +65,7 @@ cmd_save_buffer_exec(struct cmd *self, struct cmd_q *cmdq)
FILE *f;
if (!args_has(args, 'b')) {
- if ((pb = paste_get_top(&global_buffers)) == NULL) {
+ if ((pb = paste_get_top()) == NULL) {
cmdq_error(cmdq, "no buffers");
return (CMD_RETURN_ERROR);
}
@@ -77,7 +77,7 @@ cmd_save_buffer_exec(struct cmd *self, struct cmd_q *cmdq)
return (CMD_RETURN_ERROR);
}
- pb = paste_get_index(&global_buffers, buffer);
+ pb = paste_get_index(buffer);
if (pb == NULL) {
cmdq_error(cmdq, "no buffer %d", buffer);
return (CMD_RETURN_ERROR);