mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Use same working directory rules for jobs as new windows rather than
always starting in home, GitHub issue 1488.
This commit is contained in:
parent
7d59f82cf9
commit
228e1a3951
3
format.c
3
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);
|
||||
|
Loading…
Reference in New Issue
Block a user