summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-07-24 19:35:33 +0000
committernicm <nicm@openbsd.org>2009-07-24 19:35:33 +0000
commit4b89ee33776c627e3aed71d758896fe8bf0e45f6 (patch)
tree26a2a23ddd445946562ff11df32996429b1288c3
parentUse the full range of ACS line drawing characters to draw pane borders, (diff)
downloadwireguard-openbsd-4b89ee33776c627e3aed71d758896fe8bf0e45f6.tar.xz
wireguard-openbsd-4b89ee33776c627e3aed71d758896fe8bf0e45f6.zip
Set the active pane when respawning a window - fixes problems when respawning a
window with multiple panes.
-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);