summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-split-window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2013-10-10 12:07:36 +0000
committernicm <nicm@openbsd.org>2013-10-10 12:07:36 +0000
commit8a403d25b146c7f476f4429cf37fd6dbb747c66e (patch)
tree523204c719648ca2335fa6aa3781bdfa7d587d38 /usr.bin/tmux/cmd-split-window.c
parentMake cmdq->client_exit a tristate (-1 means "not set") so that if (diff)
downloadwireguard-openbsd-8a403d25b146c7f476f4429cf37fd6dbb747c66e.tar.xz
wireguard-openbsd-8a403d25b146c7f476f4429cf37fd6dbb747c66e.zip
Support -c for new-session, based on code from J Raynor.
Diffstat (limited to 'usr.bin/tmux/cmd-split-window.c')
-rw-r--r--usr.bin/tmux/cmd-split-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-split-window.c b/usr.bin/tmux/cmd-split-window.c
index f6bea1c0c44..67ff0e7d145 100644
--- a/usr.bin/tmux/cmd-split-window.c
+++ b/usr.bin/tmux/cmd-split-window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-split-window.c,v 1.44 2013/10/10 12:04:13 nicm Exp $ */
+/* $OpenBSD: cmd-split-window.c,v 1.45 2013/10/10 12:07:36 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -83,7 +83,7 @@ cmd_split_window_exec(struct cmd *self, struct cmd_q *cmdq)
cmd = options_get_string(&s->options, "default-command");
else
cmd = args->argv[0];
- cwd = cmd_get_default_path(cmdq, args_get(args, 'c'));
+ cwd = cmdq_default_path(cmdq, args_get(args, 'c'));
type = LAYOUT_TOPBOTTOM;
if (args_has(args, 'h'))