summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2024-04-10 07:15:21 +0000
committernicm <nicm>2024-04-10 07:15:21 +0000
commit424f13fe13036e75b1c80e7751b81529f4cd8e15 (patch)
tree34b05ad88d2e028c51a3540aa1ecc3526533ee11
parenta28175dbfda83961291f9d33a473885dd9330371 (diff)
Do not get muddled and crash if focusing a pane that is exiting,
reported by Saul Nogueras in GitHub issue 3776.
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
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 {