Use osdep_get_cwd() for format change

pull/1/head
Thomas Adam 2013-02-07 13:05:46 +00:00 committed by Thomas Adam
parent 64da762c15
commit 6d6e1581b5
1 changed files with 1 additions and 1 deletions

View File

@ -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);
if ((cwd = get_proc_cwd(wp->fd)) != NULL)
if ((cwd = osdep_get_cwd(wp->fd)) != NULL)
format_add(ft, "pane_current_path", "%s", cwd);
format_add(ft, "pane_pid", "%ld", (long) wp->pid);
if (wp->tty != NULL)