summaryrefslogtreecommitdiffstats
path: root/cmd-respawn-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-respawn-window.c')
-rw-r--r--cmd-respawn-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c
index 8ed678b1..cd96f50b 100644
--- a/cmd-respawn-window.c
+++ b/cmd-respawn-window.c
@@ -75,7 +75,8 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_ctx *ctx)
window_destroy_panes(w);
TAILQ_INSERT_HEAD(&w->panes, wp, entry);
window_pane_resize(wp, w->sx, w->sy);
- if (window_pane_spawn(wp, data->arg, NULL, &env, &s->tio, &cause) != 0) {
+ if (window_pane_spawn(
+ wp, data->arg, NULL, NULL, &env, &s->tio, &cause) != 0) {
ctx->error(ctx, "respawn window failed: %s", cause);
xfree(cause);
environ_free(&env);