diff options
author | 2020-04-13 08:26:27 +0000 | |
---|---|---|
committer | 2020-04-13 08:26:27 +0000 | |
commit | 90d7ba3861d079c6fa4f1960b5f66a00fbd31640 (patch) | |
tree | 4c99a32464efb735bdc9317da12b6fbbfb4d3ab5 /usr.bin/tmux/cmd-save-buffer.c | |
parent | Change so that the appropriate hooks for windows and panes belong to (diff) | |
download | wireguard-openbsd-90d7ba3861d079c6fa4f1960b5f66a00fbd31640.tar.xz wireguard-openbsd-90d7ba3861d079c6fa4f1960b5f66a00fbd31640.zip |
Make struct cmd local to cmd.c and move it out of tmux.h.
Diffstat (limited to 'usr.bin/tmux/cmd-save-buffer.c')
-rw-r--r-- | usr.bin/tmux/cmd-save-buffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-save-buffer.c b/usr.bin/tmux/cmd-save-buffer.c index 453558ca9db..bd229f64085 100644 --- a/usr.bin/tmux/cmd-save-buffer.c +++ b/usr.bin/tmux/cmd-save-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-save-buffer.c,v 1.47 2019/12/12 11:39:56 nicm Exp $ */ +/* $OpenBSD: cmd-save-buffer.c,v 1.48 2020/04/13 08:26:27 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -73,7 +73,7 @@ cmd_save_buffer_done(__unused struct client *c, const char *path, int error, static enum cmd_retval cmd_save_buffer_exec(struct cmd *self, struct cmdq_item *item) { - struct args *args = self->args; + struct args *args = cmd_get_args(self); struct client *c = cmd_find_client(item, NULL, 1); struct session *s = item->target.s; struct winlink *wl = item->target.wl; @@ -98,11 +98,11 @@ cmd_save_buffer_exec(struct cmd *self, struct cmdq_item *item) } bufdata = paste_buffer_data(pb, &bufsize); - if (self->entry == &cmd_show_buffer_entry) + if (cmd_get_entry(self) == &cmd_show_buffer_entry) path = xstrdup("-"); else path = format_single(item, args->argv[0], c, s, wl, wp); - if (args_has(self->args, 'a')) + if (args_has(args, 'a')) flags = O_APPEND; else flags = 0; |