From 38c050746dba0b309780862bf90db43d143b2f0a Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 16 May 2020 16:28:32 +0200 Subject: selection: on_row_in_view() -> on_rows_in_view(), and now takes a range This allows us to check the selection once when scrolling, instead of once for each scrolled in line. --- selection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'selection.h') diff --git a/selection.h b/selection.h index 5bc216e1..adb66821 100644 --- a/selection.h +++ b/selection.h @@ -16,7 +16,7 @@ void selection_finalize(struct terminal *term, uint32_t serial); void selection_cancel(struct terminal *term); void selection_extend(struct terminal *term, int col, int row, uint32_t serial); -bool selection_on_row_in_view(const struct terminal *term, int row_no); +bool selection_on_rows_in_view(const struct terminal *term, int start, int end); void selection_mark_word(struct terminal *term, int col, int row, bool spaces_only, uint32_t serial); -- cgit v1.3