From 6d6e1581b57b240c7d295ac734057ab760769398 Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Thu, 7 Feb 2013 13:05:46 +0000 Subject: [PATCH] Use osdep_get_cwd() for format change --- format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.c b/format.c index 35d5d722..5f57c72e 100644 --- a/format.c +++ b/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); - 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)