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. --- input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'input.c') diff --git a/input.c b/input.c index 596bce1f..9eb0161d 100644 --- a/input.c +++ b/input.c @@ -408,7 +408,8 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer, if (button == BTN_LEFT) { if (double_click) - selection_mark_word(term, term->mouse.col, term->mouse.row, serial); + selection_mark_word(term, term->mouse.col, term->mouse.row, + term->kbd.ctrl, serial); else selection_start(term, term->mouse.col, term->mouse.row); } else { -- cgit v1.3