mirror of
https://github.com/tmux/tmux.git
synced 2026-03-21 15:59:41 +00:00
Fix issue when a wp disappears in the middle of a drag event.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user