selection/input: triple click selects an entire row

This commit is contained in:
Daniel Eklöf 2019-08-06 19:32:06 +02:00
parent ae84f0ee00
commit 481a1cd678
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 32 additions and 12 deletions

View file

@ -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)
{