From 228e1a39513701385ffa6241acf6647f08a4b00c Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 27 Sep 2018 07:43:18 +0000 Subject: Use same working directory rules for jobs as new windows rather than always starting in home, GitHub issue 1488. --- format.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'format.c') diff --git a/format.c b/format.c index ec3839ef..126bbc14 100644 --- a/format.c +++ b/format.c @@ -297,7 +297,8 @@ format_job_get(struct format_tree *ft, const char *cmd) t = time(NULL); if (fj->job == NULL && (force || fj->last != t)) { - fj->job = job_run(expanded, NULL, NULL, format_job_update, + fj->job = job_run(expanded, NULL, + server_client_get_cwd(ft->client, NULL), format_job_update, format_job_complete, NULL, fj, JOB_NOWAIT); if (fj->job == NULL) { free(fj->out); -- cgit