mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Use pgrp of pty fd not pid of immediate child when recovering current
working directory (like current process). From Marcel Partap.
This commit is contained in:
2
cmd.c
2
cmd.c
@ -1298,7 +1298,7 @@ cmd_get_default_path(struct cmd_ctx *ctx, const char *cwd)
|
||||
if (ctx->cmdclient != NULL && ctx->cmdclient->cwd != NULL)
|
||||
root = ctx->cmdclient->cwd;
|
||||
else if (ctx->curclient != NULL && s->curw != NULL)
|
||||
root = get_proc_cwd(s->curw->window->active->pid);
|
||||
root = get_proc_cwd(s->curw->window->active->fd);
|
||||
else
|
||||
return (s->cwd);
|
||||
skip = 0;
|
||||
|
Reference in New Issue
Block a user