summaryrefslogtreecommitdiffstats
path: root/cmd-rename-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-rename-window.c
parentde94a344f61b0e4ef6459c11621be3c3d1683c9e (diff)
Hide struct args behind a couple of accessor functions.
Diffstat (limited to 'cmd-rename-window.c')
-rw-r--r--cmd-rename-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-rename-window.c b/cmd-rename-window.c
index 593e0b9e..66c119f2 100644
--- a/cmd-rename-window.c
+++ b/cmd-rename-window.c
@@ -50,7 +50,7 @@ cmd_rename_window_exec(struct cmd *self, struct cmdq_item *item)
struct winlink *wl = target->wl;
char *newname;
- newname = format_single_from_target(item, args->argv[0]);
+ newname = format_single_from_target(item, args_string(args, 0));
window_set_name(wl->window, newname);
options_set_number(wl->window->options, "automatic-rename", 0);