diff options
author | Joe Wilm <jwilm@users.noreply.github.com> | 2017-01-07 09:43:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-07 09:43:40 -0800 |
commit | c6959de11b735c1610973ee625f52ff7e892abcc (patch) | |
tree | 3ac6ce18729a3f620daf9d767544151d38c7d243 | |
parent | fc99df08db40cb47abd4add79829f311cee85767 (diff) | |
parent | bcd464aeeccfe482ad3b0c755141dd9a1be41550 (diff) | |
download | alacritty-c6959de11b735c1610973ee625f52ff7e892abcc.tar.gz alacritty-c6959de11b735c1610973ee625f52ff7e892abcc.zip |
Merge pull request #159 from jwilm/fix-intl-input
Fix issue with some international inputs
-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(); } } |