mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-27 01:40:16 -05:00
refactor: add a ‘range’ struct, grouping a start and end coord together
This commit is contained in:
parent
c7dd30742a
commit
5b1f1602bc
7 changed files with 105 additions and 96 deletions
5
input.c
5
input.c
|
|
@ -2121,8 +2121,9 @@ wl_pointer_motion(void *data, struct wl_pointer *wl_pointer,
|
|||
auto_scroll_direction, selection_col);
|
||||
}
|
||||
|
||||
if (term->selection.ongoing && (cursor_is_on_new_cell ||
|
||||
term->selection.end.row < 0))
|
||||
if (term->selection.ongoing && (
|
||||
cursor_is_on_new_cell ||
|
||||
term->selection.coords.end.row < 0))
|
||||
{
|
||||
selection_update(term, selection_col, selection_row);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue