summaryrefslogtreecommitdiffstats
path: root/cmd-save-buffer.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-save-buffer.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-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 b6ee2e49..0a1853d4 100644
--- a/cmd-save-buffer.c
+++ b/cmd-save-buffer.c
@@ -66,7 +66,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);
}
@@ -78,7 +78,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);