diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-08-16 18:59:12 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-08-16 18:59:12 +0000 |
commit | f415d43c3b5cb6f519b171949a6a3eeaacbf6540 (patch) | |
tree | f591d6ce7494850f85da15e78c4d0b03525465cb /cmd-respawn-window.c | |
parent | 8f9858ba2f2fa410b8e0c20a7763517b6610fcb0 (diff) |
Sync OpenBSD patchset 254:
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 'cmd-respawn-window.c')
-rw-r--r-- | cmd-respawn-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c index c5888c51..849d40b7 100644 --- a/cmd-respawn-window.c +++ b/cmd-respawn-window.c @@ -1,4 +1,4 @@ -/* $Id: cmd-respawn-window.c,v 1.19 2009-08-09 17:48:55 tcunha Exp $ */ +/* $Id: cmd-respawn-window.c,v 1.20 2009-08-16 18:59:12 tcunha Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -75,7 +75,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_ctx *ctx) window_destroy_panes(w); TAILQ_INSERT_HEAD(&w->panes, wp, entry); window_pane_resize(wp, w->sx, w->sy); - if (window_pane_spawn(wp, data->arg, NULL, &env, &cause) != 0) { + if (window_pane_spawn(wp, data->arg, NULL, &env, &s->tio, &cause) != 0) { ctx->error(ctx, "respawn window failed: %s", cause); xfree(cause); environ_free(&env); |