From 0b716d3a97f755a5d6cf75f68263eac57694fa33 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 3 Feb 2022 07:38:17 +0000 Subject: [PATCH] Update focus when active pane changes after pane destroyed. --- usr.bin/tmux/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ -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; -- 2.20.1