diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-02-03 07:38:18 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-02-03 07:38:18 +0000 |
commit | a882906f099f5b560d63350e0f9ccd5f048ed3ec (patch) | |
tree | c3977107e91e44a60375a3111e89f170ce6d172a /usr.bin/tmux/window.c | |
parent | 141d48c3da589afe9cde556895a259df62245ef2 (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.c | 3 |
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; |