aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-05 17:02:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-05 17:02:27 +0000
commitc62ce72778e2be00bea2c461f6bf8447d28708c7 (patch)
treebfedf8770ead1aec2ca17b8b4429f4a0e43b2f69 /input.c
parentterm: re-order switch-cases to be in X button order (diff)
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.
Diffstat (limited to 'input.c')
-rw-r--r--input.c3
1 files changed, 2 insertions, 1 deletions
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 {