summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2022-02-03 07:38:18 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2022-02-03 07:38:18 +0000
commita882906f099f5b560d63350e0f9ccd5f048ed3ec (patch)
treec3977107e91e44a60375a3111e89f170ce6d172a /usr.bin/tmux/window.c
parent141d48c3da589afe9cde556895a259df62245ef2 (diff)
Update focus when active pane changes after pane destroyed.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index e4a45ce7535..e495b0abe38 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.277 2021/10/07 07:52:13 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.278 2022/02/03 07:38:17 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -754,6 +754,7 @@ window_lost_pane(struct window *w, struct window_pane *wp)
if (w->active != NULL) {
w->active->flags |= PANE_CHANGED;
notify_window("window-pane-changed", w);
+ window_update_focus(w);
}
} else if (wp == w->last)
w->last = NULL;