Update focus when active pane changes after pane destroyed.

pull/3079/head
nicm 2022-02-03 07:38:17 +00:00
parent 5080acc127
commit c401c91ad9
1 changed files with 1 additions and 0 deletions

View File

@ -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;