aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/input.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/input.rs b/src/input.rs
index 3b23c0c7..f2bd461b 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -365,7 +365,12 @@ impl<'a, N: Notify + 'a> Processor<'a, N> {
}
// Didn't process a binding; print the provided character
- if let Some(string) = string {
+ if let Some(mut string) = string {
+ // from ST
+ if string.len() == 1 && mods.contains(mods::ALT) {
+ string.insert(0, '\x1b');
+ }
+
self.ctx.notifier.notify(string.into_bytes());
self.ctx.selection.clear();
}