summaryrefslogtreecommitdiffstats
path: root/cmd-split-window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2018-05-24 13:02:29 +0100
committerThomas Adam <thomas@xteddy.org>2018-05-24 13:02:29 +0100
commit7448b38327f856dae6ce915eae63f7f6c3f036e0 (patch)
treee38b2964d8261f2103f633b26995d5d2d38c7b94 /cmd-split-window.c
parent85d5a377c53d711ff923f1b5f9184f2f96c29c41 (diff)
parentb9a6162d2f9bea63c3ad421e9c3969eea2852b00 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r--cmd-split-window.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c
index 6a0a2e2a..378576ff 100644
--- a/cmd-split-window.c
+++ b/cmd-split-window.c
@@ -87,10 +87,8 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item)
if ((tmp = args_get(args, 'c')) != NULL)
cwd = format_single(item, tmp, c, s, NULL, NULL);
- else if (item->client != NULL && item->client->session == NULL)
- cwd = xstrdup(item->client->cwd);
else
- cwd = xstrdup(s->cwd);
+ cwd = xstrdup(server_client_get_cwd(item->client, s));
type = LAYOUT_TOPBOTTOM;
if (args_has(args, 'h'))