Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2019-06-30 21:02:26 +01:00
3 changed files with 2 additions and 5 deletions

View File

@ -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);
}