From a52b2186877eb82197db226ad6589a8743b6c299 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 16 Sep 2009 12:35:05 +0000 Subject: Rather than constructing an entire termios struct from ttydefaults.h, just let forkpty do it and then alter the bits that should be changed after fork. A little neater and more portable. --- usr.bin/tmux/cmd-split-window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/tmux/cmd-split-window.c') diff --git a/usr.bin/tmux/cmd-split-window.c b/usr.bin/tmux/cmd-split-window.c index 19fe3af2ebb..b2ab049f4f0 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.11 2009/09/01 13:09:49 nicm Exp $ */ +/* $OpenBSD: cmd-split-window.c,v 1.12 2009/09/16 12:35:04 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -190,7 +190,7 @@ cmd_split_window_exec(struct cmd *self, struct cmd_ctx *ctx) shell = _PATH_BSHELL; wp = window_add_pane(w, hlimit); - if (window_pane_spawn(wp, cmd, shell, cwd, &env, &s->tio, &cause) != 0) + if (window_pane_spawn(wp, cmd, shell, cwd, &env, s->tio, &cause) != 0) goto error; if (layout_split_pane(w->active, type, size, wp) != 0) { cause = xstrdup("pane too small"); -- cgit v1.2.3