summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-respawn-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-07-24 19:35:34 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-07-24 19:35:34 +0000
commitd8dc71444a29ce95db2f36d4cbb04478799c2195 (patch)
treecec504c76a66a9688c2c33d087a2829fc610e9d6 /usr.bin/tmux/cmd-respawn-window.c
parent911c0ef0eb764dd0b61aa59d17595e7a461d18f8 (diff)
Set the active pane when respawning a window - fixes problems when respawning a
window with multiple panes.
Diffstat (limited to 'usr.bin/tmux/cmd-respawn-window.c')
-rw-r--r--usr.bin/tmux/cmd-respawn-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-respawn-window.c b/usr.bin/tmux/cmd-respawn-window.c
index a64e186c7d9..4d450affa62 100644
--- a/usr.bin/tmux/cmd-respawn-window.c
+++ b/usr.bin/tmux/cmd-respawn-window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-respawn-window.c,v 1.3 2009/07/19 13:21:40 nicm Exp $ */
+/* $OpenBSD: cmd-respawn-window.c,v 1.4 2009/07/24 19:35:33 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -81,6 +81,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_ctx *ctx)
}
layout_init(w);
screen_reinit(&wp->base);
+ window_set_active_pane(w, wp);
recalculate_sizes();
server_redraw_window(w);