diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-08-13 19:03:59 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-08-13 19:03:59 +0000 |
commit | 52793e7a3fc7f53b173ee887c221ff4ed38499e8 (patch) | |
tree | 356d4c56edbc1c2e4ed9d567c682dafc30290808 /cmd-respawn-window.c | |
parent | 2e3bb5a51193269305eca3d689b6c66d08b2530a (diff) | |
download | rtmux-52793e7a3fc7f53b173ee887c221ff4ed38499e8.tar.gz rtmux-52793e7a3fc7f53b173ee887c221ff4ed38499e8.tar.bz2 rtmux-52793e7a3fc7f53b173ee887c221ff4ed38499e8.zip |
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c index 735c637b..8ed678b1 100644 --- a/cmd-respawn-window.c +++ b/cmd-respawn-window.c @@ -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); |