mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-20 01:40:14 -05:00
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:
parent
528ee9925c
commit
c62ce72778
3 changed files with 15 additions and 8 deletions
3
input.c
3
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue