mirror of
https://github.com/tmux/tmux.git
synced 2026-10-16 16:44:30 +00:00
Clear stale pane references correctly when respawning windows, GitHub
issue 5757 from Alejandro Pacheco.
This commit is contained in:
3
spawn.c
3
spawn.c
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: spawn.c,v 1.57 2026/10/08 07:50:05 nicm Exp $ */
|
||||
/* $OpenBSD: spawn.c,v 1.58 2026/10/16 14:26:08 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -142,6 +142,7 @@ spawn_window(struct spawn_context *sc, char **cause)
|
||||
}
|
||||
}
|
||||
|
||||
window_unzoom(w, 1);
|
||||
sc->wp0 = TAILQ_FIRST(&w->panes);
|
||||
TAILQ_REMOVE(&w->panes, sc->wp0, entry);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user