mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Do not get muddled and crash if focusing a pane that is exiting,
reported by Saul Nogueras in GitHub issue 3776.
This commit is contained in:
2
window.c
2
window.c
@ -474,7 +474,7 @@ window_pane_update_focus(struct window_pane *wp)
|
|||||||
struct client *c;
|
struct client *c;
|
||||||
int focused = 0;
|
int focused = 0;
|
||||||
|
|
||||||
if (wp != NULL) {
|
if (wp != NULL && (~wp->flags & PANE_EXITED)) {
|
||||||
if (wp != wp->window->active)
|
if (wp != wp->window->active)
|
||||||
focused = 0;
|
focused = 0;
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user