From d45c12b6c9405da549197c2852ac124fc0d5b340 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 10 Oct 2013 12:00:18 +0000 Subject: Remove the barely-used and unnecessary command check() function. --- cmd-respawn-window.c | 1 - 1 file changed, 1 deletion(-) (limited to 'cmd-respawn-window.c') diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c index a446794b..e4ef6dfb 100644 --- a/cmd-respawn-window.c +++ b/cmd-respawn-window.c @@ -35,7 +35,6 @@ const struct cmd_entry cmd_respawn_window_entry = { "[-k] " CMD_TARGET_WINDOW_USAGE " [command]", 0, NULL, - NULL, cmd_respawn_window_exec }; -- cgit From b85de1ddb34a1b22567e9bf89c9a21a81bf12aa1 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 10 Oct 2013 12:29:53 +0000 Subject: Pass -1 for cwd now not NULL. --- cmd-respawn-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-respawn-window.c') diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c index e4ef6dfb..b681f2f4 100644 --- a/cmd-respawn-window.c +++ b/cmd-respawn-window.c @@ -79,7 +79,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_q *cmdq) cmd = args->argv[0]; else cmd = NULL; - if (window_pane_spawn(wp, cmd, NULL, NULL, &env, s->tio, &cause) != 0) { + if (window_pane_spawn(wp, cmd, NULL, -1, &env, s->tio, &cause) != 0) { cmdq_error(cmdq, "respawn window failed: %s", cause); free(cause); environ_free(&env); -- cgit