summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-load-buffer.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-04-13 08:26:27 +0000
committernicm <nicm@openbsd.org>2020-04-13 08:26:27 +0000
commit90d7ba3861d079c6fa4f1960b5f66a00fbd31640 (patch)
tree4c99a32464efb735bdc9317da12b6fbbfb4d3ab5 /usr.bin/tmux/cmd-load-buffer.c
parentChange so that the appropriate hooks for windows and panes belong to (diff)
downloadwireguard-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-load-buffer.c')
-rw-r--r--usr.bin/tmux/cmd-load-buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-load-buffer.c b/usr.bin/tmux/cmd-load-buffer.c
index a2450e0bfc0..e70d936fa3f 100644
--- a/usr.bin/tmux/cmd-load-buffer.c
+++ b/usr.bin/tmux/cmd-load-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-load-buffer.c,v 1.57 2019/12/12 11:39:56 nicm Exp $ */
+/* $OpenBSD: cmd-load-buffer.c,v 1.58 2020/04/13 08:26:27 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -83,7 +83,7 @@ cmd_load_buffer_done(__unused struct client *c, const char *path, int error,
static enum cmd_retval
cmd_load_buffer_exec(struct cmd *self, struct cmdq_item *item)
{
- struct args *args = self->args;
+ struct args *args = cmd_get_args(self);
struct cmd_load_buffer_data *cdata;
struct client *c = cmd_find_client(item, NULL, 1);
struct session *s = item->target.s;