mirror of
https://github.com/tmux/tmux.git
synced 2026-03-26 21:26:25 +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);
|
RB_REMOVE(client_windows, &c->windows, cw);
|
||||||
free(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