Update focus when active pane changes after pane destroyed.
authornicm <nicm@openbsd.org>
Thu, 3 Feb 2022 07:38:17 +0000 (07:38 +0000)
committernicm <nicm@openbsd.org>
Thu, 3 Feb 2022 07:38:17 +0000 (07:38 +0000)
usr.bin/tmux/window.c

index e4a45ce..e495b0a 100644 (file)
@@ -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;