aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-01-06 22:04:51 -0800
committerJoe Wilm <joe@jwilm.com>2017-01-06 22:11:54 -0800
commitbcd464aeeccfe482ad3b0c755141dd9a1be41550 (patch)
tree28d4fdc89dfbbf3d6eca88ce336efa6267c04cd5
parent852c2d8f15bfc11f0222fa08626c38724accd35a (diff)
downloadalacritty-bcd464aeeccfe482ad3b0c755141dd9a1be41550.tar.gz
alacritty-bcd464aeeccfe482ad3b0c755141dd9a1be41550.zip
Fix issue with some international inputs
cc #87, #55
-rw-r--r--src/input.rs17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/input.rs b/src/input.rs
index 8823b89e..47ce52fa 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -363,16 +363,17 @@ impl<'a, N: Notify + 'a> Processor<'a, N> {
return;
}
- // Didn't process a binding; print the provided character
- 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();
+ // Didn't process a binding; print the provided character
+ 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();
}
}