aboutsummaryrefslogtreecommitdiff
path: root/selection.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-16 14:28:32 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-16 19:16:11 +0000
commit38c050746dba0b309780862bf90db43d143b2f0a (patch)
tree6fbcd4810f16f1bb892bcef2ad8d9dd09af8e00c /selection.h
parentrender: only apply transparency to the default background color (diff)
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.
Diffstat (limited to 'selection.h')
-rw-r--r--selection.h2
1 files changed, 1 insertions, 1 deletions
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);