summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-split-window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-08-13 19:03:59 +0000
committernicm <nicm@openbsd.org>2009-08-13 19:03:59 +0000
commitc1f396273ac65e4a2c643800fa86f84023ca542a (patch)
treee1d9a46dbca81a839dcd2a7c5eb9e5016e55c9af /usr.bin/tmux/cmd-split-window.c
parentdocument the show all vnodes command. prompted by jmc@. (diff)
downloadwireguard-openbsd-c1f396273ac65e4a2c643800fa86f84023ca542a.tar.xz
wireguard-openbsd-c1f396273ac65e4a2c643800fa86f84023ca542a.zip
When creating a new session from the command-line where there is an external
terminal, copy the termios(4) special characters and use them for new windows created in the new session. Suggested by Theo.
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 4907af86deb..1bc2d907bb5 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.8 2009/08/08 21:52:43 nicm Exp $ */
+/* $OpenBSD: cmd-split-window.c,v 1.9 2009/08/13 19:04:00 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -184,7 +184,7 @@ cmd_split_window_exec(struct cmd *self, struct cmd_ctx *ctx)
type = LAYOUT_LEFTRIGHT;
wp = window_add_pane(w, hlimit);
- if (window_pane_spawn(wp, cmd, cwd, &env, &cause) != 0)
+ if (window_pane_spawn(wp, cmd, cwd, &env, &s->tio, &cause) != 0)
goto error;
if (layout_split_pane(w->active, type, size, wp) != 0) {
cause = xstrdup("pane too small");