summaryrefslogtreecommitdiffstats
path: root/spawn.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-06-30 21:02:26 +0100
committerThomas Adam <thomas@xteddy.org>2019-06-30 21:02:26 +0100
commitabcd4bd24662e79a7ae936c5d2c971417864c519 (patch)
tree9da6e4b100a5fd48271956c293a20e8b53277653 /spawn.c
parent68c2fc682493f154d833ae6195b4adc33fd4a3b2 (diff)
parentcf30e0f9357b7e42491645a87eeae06ffb8e8066 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'spawn.c')
-rw-r--r--spawn.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/spawn.c b/spawn.c
index 8be26fa3..2a588b6b 100644
--- a/spawn.c
+++ b/spawn.c
@@ -170,10 +170,8 @@ spawn_window(struct spawn_context *sc, char **cause)
/* Spawn the pane. */
wp = spawn_pane(sc, cause);
if (wp == NULL) {
- if (~sc->flags & SPAWN_RESPAWN) {
- window_destroy(w);
+ if (~sc->flags & SPAWN_RESPAWN)
winlink_remove(&s->windows, sc->wl);
- }
return (NULL);
}