mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Don't boke when figuring out working directory from configuration file.
This commit is contained in:
@ -125,7 +125,7 @@ cmd_new_window_exec(struct cmd *self, struct cmd_q *cmdq)
|
||||
return (CMD_RETURN_ERROR);
|
||||
}
|
||||
cwd = fd;
|
||||
} else if (cmdq->client->session == NULL)
|
||||
} else if (cmdq->client != NULL && cmdq->client->session == NULL)
|
||||
cwd = cmdq->client->cwd;
|
||||
else
|
||||
cwd = s->cwd;
|
||||
|
Reference in New Issue
Block a user