summaryrefslogtreecommitdiffstats
path: root/cmd-select-layout.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-13 08:26:27 +0000
committernicm <nicm>2020-04-13 08:26:27 +0000
commitc20eb0c0ae3347c768894a6355adfd7ebae6f2f3 (patch)
tree970e82f29bd603d459476d44245ce73aad18666e /cmd-select-layout.c
parent9cbe9675ea8a8efb01dcc5f267e6d5853b2cd58f (diff)
Make struct cmd local to cmd.c and move it out of tmux.h.
Diffstat (limited to 'cmd-select-layout.c')
-rw-r--r--cmd-select-layout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-select-layout.c b/cmd-select-layout.c
index 775d32c5..b51ab4c1 100644
--- a/cmd-select-layout.c
+++ b/cmd-select-layout.c
@@ -71,7 +71,7 @@ const struct cmd_entry cmd_previous_layout_entry = {
static enum cmd_retval
cmd_select_layout_exec(struct cmd *self, struct cmdq_item *item)
{
- struct args *args = self->args;
+ struct args *args = cmd_get_args(self);
struct winlink *wl = item->target.wl;
struct window *w = wl->window;
struct window_pane *wp = item->target.wp;
@@ -81,10 +81,10 @@ cmd_select_layout_exec(struct cmd *self, struct cmdq_item *item)
server_unzoom_window(w);
- next = self->entry == &cmd_next_layout_entry;
+ next = (cmd_get_entry(self) == &cmd_next_layout_entry);
if (args_has(args, 'n'))
next = 1;
- previous = self->entry == &cmd_previous_layout_entry;
+ previous = (cmd_get_entry(self) == &cmd_previous_layout_entry);
if (args_has(args, 'p'))
previous = 1;