From 424f13fe13036e75b1c80e7751b81529f4cd8e15 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 10 Apr 2024 07:15:21 +0000 Subject: [PATCH] Do not get muddled and crash if focusing a pane that is exiting, reported by Saul Nogueras in GitHub issue 3776. --- window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window.c b/window.c index 43c272bc..d53c606e 100644 --- a/window.c +++ b/window.c @@ -474,7 +474,7 @@ window_pane_update_focus(struct window_pane *wp) struct client *c; int focused = 0; - if (wp != NULL) { + if (wp != NULL && (~wp->flags & PANE_EXITED)) { if (wp != wp->window->active) focused = 0; else {