Fix issue when a wp disappears in the middle of a drag event.

This commit is contained in:
Michael Grant
2026-03-20 07:49:49 +00:00
parent 7e6bbc63ab
commit 943490cfa1

View File

@@ -4044,6 +4044,11 @@ server_client_remove_pane(struct window_pane *wp)
RB_REMOVE(client_windows, &c->windows, cw);
free(cw);
}
if (c->tty.mouse_wp == wp) {
c->tty.mouse_wp = NULL;
c->tty.mouse_drag_update = NULL;
c->tty.mouse_scrolling_flag = 0;
}
}
}