mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
selection: extend: new row must be offsetted with the current view offset
This commit is contained in:
parent
fac4b73107
commit
035eccbb13
1 changed files with 2 additions and 0 deletions
|
|
@ -505,6 +505,8 @@ selection_extend(struct terminal *term, int col, int row, uint32_t serial)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
row += term->grid->view;
|
||||||
|
|
||||||
if ((row == term->selection.start.row && col == term->selection.start.col) ||
|
if ((row == term->selection.start.row && col == term->selection.start.col) ||
|
||||||
(row == term->selection.end.row && col == term->selection.end.col))
|
(row == term->selection.end.row && col == term->selection.end.col))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue