From 5b1f1602bccfb7c37e50a8509f44b24e9aa3b5d1 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 9 Apr 2022 15:09:02 +0200 Subject: refactor: add a ‘range’ struct, grouping a start and end coord together MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index 6dbf7fe3..1bf1e14b 100644 --- a/input.c +++ b/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); } -- cgit v1.3