aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-02-18 17:40:19 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-02-18 17:40:19 +0000
commitf76c9e77f1bd2c2c844a703542e939bfb0e77512 (patch)
tree96d6ab4a1c0aa744d78728605e037038f6646acb /input.c
parentmain: --server: don’t exit with code 0 on failure (diff)
parentdoc: foot.ini: document the new [text-bindings] section (diff)
Merge branch 'custom-input-escapes'
Closes #325
Diffstat (limited to 'input.c')
-rw-r--r--input.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/input.c b/input.c
index e7b02fb8..26af0807 100644
--- a/input.c
+++ b/input.c
@@ -313,6 +313,11 @@ execute_binding(struct seat *seat, struct terminal *term,
return true;
}
+ case BIND_ACTION_TEXT_BINDING:
+ xassert(binding->aux->type == BINDING_AUX_TEXT);
+ term_to_slave(term, binding->aux->text.data, binding->aux->text.len);
+ return true;
+
case BIND_ACTION_SELECT_BEGIN:
selection_start(
term, seat->mouse.col, seat->mouse.row, SELECTION_CHAR_WISE, false);