summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-respawn-pane.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2011-07-04 13:35:38 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2011-07-04 13:35:38 +0000
commit30181515b59fc24635ef46cf7f54c5f5c06917a9 (patch)
tree950122fd486b7be9f235b87c8479d4b072f32945 /usr.bin/tmux/cmd-respawn-pane.c
parent012d0237c93a3b5eb0a8e8c62ee8eff4d6648f3a (diff)
Use screen_reinit for respawn-pane to keep history and call input_init
for respawn-window to break out of waiting for DCS/OSC to finish.
Diffstat (limited to 'usr.bin/tmux/cmd-respawn-pane.c')
-rw-r--r--usr.bin/tmux/cmd-respawn-pane.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/tmux/cmd-respawn-pane.c b/usr.bin/tmux/cmd-respawn-pane.c
index 163d4674db9..51781b856d8 100644
--- a/usr.bin/tmux/cmd-respawn-pane.c
+++ b/usr.bin/tmux/cmd-respawn-pane.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-respawn-pane.c,v 1.1 2011/06/05 11:19:03 nicm Exp $ */
+/* $Id: cmd-respawn-pane.c,v 1.2 2011/07/04 13:35:37 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -68,10 +68,7 @@ cmd_respawn_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
server_fill_environ(s, &env);
window_pane_reset_mode(wp);
- screen_free(&wp->base);
- hlimit = options_get_number(&s->options, "history-limit");
- screen_init(&wp->base, wp->sx, wp->sy, hlimit);
- wp->screen = &wp->base;
+ screen_reinit(&wp->base);
input_init(wp);
if (args->argc != 0)