summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2018-05-24 09:42:49 +0000
committernicm <nicm>2018-05-24 09:42:49 +0000
commitb9a6162d2f9bea63c3ad421e9c3969eea2852b00 (patch)
treed944f370a3a21ea175f9fe958f9773146cdbfc1a /window.c
parent8f5903d7c3d75763ed5dc37ff49a39fe3b3b7831 (diff)
Make server_client_get_cwd used (almost) everywhere we need to work out
the cwd, and do not fall back to "." as it is pretty useless. GitHub issue 1331.
Diffstat (limited to 'window.c')
-rw-r--r--window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/window.c b/window.c
index 79a5b30c..3b9469fe 100644
--- a/window.c
+++ b/window.c
@@ -918,7 +918,8 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
cmd = cmd_stringify_argv(wp->argc, wp->argv);
log_debug("%s: shell=%s", __func__, wp->shell);
- log_debug("%s: command=%s", __func__, cmd);
+ log_debug("%s: cmd=%s", __func__, cmd);
+ log_debug("%s: cwd=%s", __func__, cwd);
for (i = 0; i < wp->argc; i++)
log_debug("%s: argv[%d]=%s", __func__, i, wp->argv[i]);
environ_log(env, "%s: environment ", __func__);