Do not try to use last pane if there isn't one.

This commit is contained in:
nicm
2026-05-28 10:45:17 +00:00
parent 7769097915
commit 7ebeed1ae7

View File

@@ -1022,6 +1022,7 @@ have_event:
/* Only change pane if not already dragging a pane border. */
if (lwp == NULL) {
lwp = wp = window_get_active_at(w, px, py);
if (wp != NULL)
c->tty.mouse_last_pane = wp->id;
}
if (c->tty.mouse_scrolling_flag == 0 &&