mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +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
format.c
2
format.c
@ -391,7 +391,7 @@ format_window_pane(struct format_tree *ft, struct window_pane *wp)
|
||||
format_add(ft, "pane_start_command", "%s", wp->cmd);
|
||||
if (wp->cwd != NULL)
|
||||
format_add(ft, "pane_start_path", "%s", wp->cwd);
|
||||
format_add(ft, "pane_current_path", "%s", get_proc_cwd(wp->pid));
|
||||
format_add(ft, "pane_current_path", "%s", get_proc_cwd(wp->fd));
|
||||
format_add(ft, "pane_pid", "%ld", (long) wp->pid);
|
||||
format_add(ft, "pane_tty", "%s", wp->tty);
|
||||
}
|
||||
|
Reference in New Issue
Block a user