When resizing the copy mode screen, don't allow it to end up with the

viewable position beyond the size of the history.
pull/1/head
Nicholas Marriott 2010-09-11 15:39:55 +00:00
parent a22a6deda5
commit c1c5f43a01
1 changed files with 2 additions and 0 deletions

View File

@ -342,6 +342,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);