Fix selection test, from Takeshi Banse.

This commit is contained in:
nicm 2018-09-03 08:47:27 +00:00
parent 95e3e363ff
commit 9bab73f489

View File

@ -2082,7 +2082,7 @@ window_copy_cursor_up(struct window_pane *wp, int scroll_only)
} }
} }
if (data->screen.sel != NULL || !data->rectflag) { if (data->screen.sel == NULL || !data->rectflag) {
py = screen_hsize(data->backing) + data->cy - data->oy; py = screen_hsize(data->backing) + data->cy - data->oy;
px = window_copy_find_length(wp, py); px = window_copy_find_length(wp, py);
if ((data->cx >= data->lastsx && data->cx != px) || if ((data->cx >= data->lastsx && data->cx != px) ||