summaryrefslogtreecommitdiffstats
path: root/cmd-respawn-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-09-16 12:35:04 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-09-16 12:35:04 +0000
commit5c60162e3c4f8ac9deede6c0fb5a21930d92e3b4 (patch)
tree16e91d61eed65cf74d3987cf9b7cd08ffea48288 /cmd-respawn-window.c
parenta6dd9e8e7eb0d7734b0905a97f6e8b0087a2e09c (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-respawn-window.c')
-rw-r--r--cmd-respawn-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c
index cd96f50b..540931aa 100644
--- a/cmd-respawn-window.c
+++ b/cmd-respawn-window.c
@@ -76,7 +76,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_ctx *ctx)
TAILQ_INSERT_HEAD(&w->panes, wp, entry);
window_pane_resize(wp, w->sx, w->sy);
if (window_pane_spawn(
- wp, data->arg, NULL, NULL, &env, &s->tio, &cause) != 0) {
+ wp, data->arg, NULL, NULL, &env, s->tio, &cause) != 0) {
ctx->error(ctx, "respawn window failed: %s", cause);
xfree(cause);
environ_free(&env);