mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-25 11:54:04 +00:00
Fix crash when resizing in copy mode, when cursor can end up outside screen.
Reported by Romain Francois, fixed by Micah Cowan.
This commit is contained in:
parent
83e1a33ff5
commit
2240199dbf
1 changed files with 2 additions and 0 deletions
|
|
@ -340,6 +340,8 @@ window_copy_resize(struct window_pane *wp, u_int sx, u_int sy)
|
|||
data->cy = sy - 1;
|
||||
if (data->cx > sx)
|
||||
data->cx = sx;
|
||||
if (data->oy > screen_hsize(data->backing))
|
||||
data->oy = screen_hsize(data->backing);
|
||||
|
||||
window_copy_clear_selection(wp);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue