aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-02 20:20:41 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-04 18:48:26 +0000
commit30de262d29d703b0cc31799a4abf84239f3caf22 (patch)
treebd71d133f96e031c311b2d171769f4f3922dc429 /input.c
parentrender: draw combining characters on top of colored bitmap glyphs (emoji) (diff)
selection: wip: update selection word-wise when initial selection was by word
Diffstat (limited to 'input.c')
-rw-r--r--input.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/input.c b/input.c
index e4a1f306..0b45c5ad 100644
--- a/input.c
+++ b/input.c
@@ -275,7 +275,8 @@ execute_binding(struct seat *seat, struct terminal *term,
case BIND_ACTION_SELECT_BEGIN:
if (selection_enabled(term, seat) && cursor_is_on_grid) {
selection_start(
- term, seat->mouse.col, seat->mouse.row, SELECTION_NORMAL);
+ term, seat->mouse.col, seat->mouse.row,
+ SELECTION_NORMAL, SELECTION_SEMANTIC_NONE);
return true;
}
return false;
@@ -283,7 +284,8 @@ execute_binding(struct seat *seat, struct terminal *term,
case BIND_ACTION_SELECT_BEGIN_BLOCK:
if (selection_enabled(term, seat) && cursor_is_on_grid) {
selection_start(
- term, seat->mouse.col, seat->mouse.row, SELECTION_BLOCK);
+ term, seat->mouse.col, seat->mouse.row,
+ SELECTION_BLOCK, SELECTION_SEMANTIC_NONE);
return true;
}
return false;