diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-09-16 12:35:04 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-09-16 12:35:04 +0000 |
commit | 5c60162e3c4f8ac9deede6c0fb5a21930d92e3b4 (patch) | |
tree | 16e91d61eed65cf74d3987cf9b7cd08ffea48288 /cmd-split-window.c | |
parent | a6dd9e8e7eb0d7734b0905a97f6e8b0087a2e09c (diff) |
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.
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r-- | cmd-split-window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c index d6fc3f78..1604d9e2 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -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"); |