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.
This commit is contained in:
Daniel Eklöf 2019-08-05 19:02:27 +02:00
parent 528ee9925c
commit c62ce72778
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 15 additions and 8 deletions

View file

@ -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 {