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-set-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-set-buffer.c')
-rw-r--r-- | usr.bin/tmux/cmd-set-buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-set-buffer.c b/usr.bin/tmux/cmd-set-buffer.c index efac23ac849..24a6ffe0ee2 100644 --- a/usr.bin/tmux/cmd-set-buffer.c +++ b/usr.bin/tmux/cmd-set-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-buffer.c,v 1.28 2016/10/16 19:04:05 nicm Exp $ */ +/* $OpenBSD: cmd-set-buffer.c,v 1.29 2020/04/13 08:26:27 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -54,7 +54,7 @@ const struct cmd_entry cmd_delete_buffer_entry = { static enum cmd_retval cmd_set_buffer_exec(struct cmd *self, struct cmdq_item *item) { - struct args *args = self->args; + struct args *args = cmd_get_args(self); struct paste_buffer *pb; char *bufdata, *cause; const char *bufname, *olddata; @@ -66,7 +66,7 @@ cmd_set_buffer_exec(struct cmd *self, struct cmdq_item *item) else pb = paste_get_name(bufname); - if (self->entry == &cmd_delete_buffer_entry) { + if (cmd_get_entry(self) == &cmd_delete_buffer_entry) { if (pb == NULL) pb = paste_get_top(&bufname); if (pb == NULL) { |