selection: extend: new row must be offsetted with the current view offset

This commit is contained in:
Daniel Eklöf 2020-04-04 12:05:40 +02:00
parent fac4b73107
commit 035eccbb13
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -505,6 +505,8 @@ selection_extend(struct terminal *term, int col, int row, uint32_t serial)
return;
}
row += term->grid->view;
if ((row == term->selection.start.row && col == term->selection.start.col) ||
(row == term->selection.end.row && col == term->selection.end.col))
{