mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
selection: bug: apply grid's view offset when starting a selection
This commit is contained in:
parent
20684afa8c
commit
f669cce5b9
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ selection_start(struct terminal *term, int col, int row)
|
|||
selection_cancel(term);
|
||||
|
||||
LOG_DBG("selection started at %d,%d", row, col);
|
||||
term->selection.start = (struct coord){col, row};
|
||||
term->selection.start = (struct coord){col, term->grid->view + row};
|
||||
term->selection.end = (struct coord){-1, -1};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue