summaryrefslogtreecommitdiffstats
path: root/cmd-respawn-window.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-11-14 17:48:39 +0000
committerTiago Cunha <tcunha@gmx.com>2009-11-14 17:48:39 +0000
commit72bc03ac4c0fa3757d16363ab9cacb0a152275f9 (patch)
tree59c1d12870a47c1e295a9258ca44208594cfffb4 /cmd-respawn-window.c
parent56447d73c1348c708f36a624416c008e6b262293 (diff)
Sync OpenBSD patchset 535:
Destroy panes immediately rather than checking them all every loop.
Diffstat (limited to 'cmd-respawn-window.c')
-rw-r--r--cmd-respawn-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c
index abf030f6..9028fdd4 100644
--- a/cmd-respawn-window.c
+++ b/cmd-respawn-window.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-respawn-window.c,v 1.22 2009-09-16 12:36:27 nicm Exp $ */
+/* $Id: cmd-respawn-window.c,v 1.23 2009-11-14 17:48:39 tcunha Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -80,6 +80,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_ctx *ctx)
ctx->error(ctx, "respawn window failed: %s", cause);
xfree(cause);
environ_free(&env);
+ server_destroy_pane(wp);
return (-1);
}
layout_init(w);