diff options
author | Joe Wilm <joe@jwilm.com> | 2017-01-06 22:04:51 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2017-01-06 22:11:54 -0800 |
commit | bcd464aeeccfe482ad3b0c755141dd9a1be41550 (patch) | |
tree | 28d4fdc89dfbbf3d6eca88ce336efa6267c04cd5 /src | |
parent | 852c2d8f15bfc11f0222fa08626c38724accd35a (diff) |
Fix issue with some international inputs
cc #87, #55
Diffstat (limited to 'src')
-rw-r--r-- | src/input.rs | 17 |
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(); } } |