Update focus when active pane changes after pane destroyed.

This commit is contained in:
nicm 2022-02-03 07:38:17 +00:00
parent 5080acc127
commit c401c91ad9

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;