summaryrefslogtreecommitdiffstats
path: root/cmd-find-window.c
diff options
context:
space:
mode:
authornicm <nicm>2021-08-20 19:50:16 +0000
committernicm <nicm>2021-08-20 19:50:16 +0000
commit5f32b7d9613e9ef3f8198302379a42630323da6a (patch)
tree0a0b488496625e9da5cbc02c5a1271634568ecc3 /cmd-find-window.c
parentde94a344f61b0e4ef6459c11621be3c3d1683c9e (diff)
Hide struct args behind a couple of accessor functions.
Diffstat (limited to 'cmd-find-window.c')
-rw-r--r--cmd-find-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-find-window.c b/cmd-find-window.c
index 43f5f9be..691baf85 100644
--- a/cmd-find-window.c
+++ b/cmd-find-window.c
@@ -47,7 +47,7 @@ cmd_find_window_exec(struct cmd *self, struct cmdq_item *item)
struct args *args = cmd_get_args(self), *new_args;
struct cmd_find_state *target = cmdq_get_target(item);
struct window_pane *wp = target->wp;
- const char *s = args->argv[0], *suffix = "";
+ const char *s = args_string(args, 0), *suffix = "";
char *filter;
int C, N, T;