From c62ce72778e2be00bea2c461f6bf8447d28708c7 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 5 Aug 2019 19:02:27 +0200 Subject: selection: mark-word using spaces only as word separator When the user double-clicks with ctrl pressed, we now select the word under the cursor using spaces only as word separator. --- selection.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'selection.h') diff --git a/selection.h b/selection.h index 8473dbfa..9d712da1 100644 --- a/selection.h +++ b/selection.h @@ -1,5 +1,6 @@ #pragma once +#include #include #include "terminal.h" @@ -11,7 +12,8 @@ void selection_start(struct terminal *term, int col, int row); void selection_update(struct terminal *term, int col, int row); void selection_finalize(struct terminal *term, uint32_t serial); void selection_cancel(struct terminal *term); -void selection_mark_word(struct terminal *term, int col, int row, uint32_t serial); +void selection_mark_word(struct terminal *term, int col, int row, + bool spaces_only, uint32_t serial); void selection_to_clipboard(struct terminal *term, uint32_t serial); void selection_from_clipboard(struct terminal *term, uint32_t serial); -- cgit v1.3