diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-05 17:02:27 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-05 17:02:27 +0000 |
| commit | c62ce72778e2be00bea2c461f6bf8447d28708c7 (patch) | |
| tree | bfedf8770ead1aec2ca17b8b4429f4a0e43b2f69 /input.c | |
| parent | term: 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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 { |
