aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'format.c')
-rw-r--r--format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/format.c b/format.c
index f1f52895..8c122aee 100644
--- a/format.c
+++ b/format.c
@@ -728,7 +728,7 @@ format_cb_current_command(struct format_tree *ft, struct format_entry *fe)
if (wp == NULL || wp->shell == NULL)
return;
- cmd = get_proc_name(wp->fd, wp->tty);
+ cmd = osdep_get_name(wp->fd, wp->tty);
if (cmd == NULL || *cmd == '\0') {
free(cmd);
cmd = cmd_stringify_argv(wp->argc, wp->argv);
@@ -751,7 +751,7 @@ format_cb_current_path(struct format_tree *ft, struct format_entry *fe)
if (wp == NULL)
return;
- cwd = get_proc_cwd(wp->fd);
+ cwd = osdep_get_cwd(wp->fd);
if (cwd != NULL)
fe->value = xstrdup(cwd);
}