mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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.
This commit is contained in:
parent
b647aa447b
commit
38c050746d
3 changed files with 37 additions and 15 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue