summaryrefslogtreecommitdiffstats
path: root/cmd-respawn-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-09-16 12:36:28 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-09-16 12:36:28 +0000
commit15b643fc119221658ca3e9c6718eeb88ffcbe47a (patch)
tree21c2d4ebd4565117a9a4d9ed7c98f84326849f07 /cmd-respawn-window.c
parent150fba5ecdb3fedd8aed71ee65fb8cc6b0354070 (diff)
Sync from OpenBSD:
== 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. == This should fix problems caused by glibc's broken ttydefaults.h file.
Diffstat (limited to 'cmd-respawn-window.c')
-rw-r--r--cmd-respawn-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c
index 114fdfd1..abf030f6 100644
--- a/cmd-respawn-window.c
+++ b/cmd-respawn-window.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-respawn-window.c,v 1.21 2009-09-02 01:02:44 tcunha Exp $ */
+/* $Id: cmd-respawn-window.c,v 1.22 2009-09-16 12:36:27 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);