aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-04-09 13:09:02 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-09 13:09:02 +0000
commit5b1f1602bccfb7c37e50a8509f44b24e9aa3b5d1 (patch)
treed7d801fa0dee8d886b1d8302ea3b0436b86bf22e /input.c
parentconfig: use fallback when XDG_CONFIG_{HOME,DIRS} is set, but empty (diff)
refactor: add a ‘range’ struct, grouping a start and end coord together
Diffstat (limited to 'input.c')
-rw-r--r--input.c5
1 files changed, 3 insertions, 2 deletions
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);
}