mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
selection/input: triple click selects an entire row
This commit is contained in:
parent
ae84f0ee00
commit
481a1cd678
4 changed files with 32 additions and 12 deletions
|
|
@ -333,6 +333,14 @@ selection_mark_word(struct terminal *term, int col, int row, bool spaces_only,
|
|||
selection_finalize(term, serial);
|
||||
}
|
||||
|
||||
void
|
||||
selection_mark_row(struct terminal *term, int row, uint32_t serial)
|
||||
{
|
||||
selection_start(term, 0, row);
|
||||
selection_update(term, term->cols - 1, row);
|
||||
selection_finalize(term, serial);
|
||||
}
|
||||
|
||||
static void
|
||||
target(void *data, struct wl_data_source *wl_data_source, const char *mime_type)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue