From 481a1cd6780233888fa1132242cb96f20ab14b73 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 6 Aug 2019 19:32:06 +0200 Subject: selection/input: triple click selects an entire row --- selection.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'selection.c') diff --git a/selection.c b/selection.c index f69338a4..7c3d4826 100644 --- a/selection.c +++ b/selection.c @@ -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) { -- cgit v1.3