aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Wilm <jwilm@users.noreply.github.com>2017-01-07 09:43:40 -0800
committerGitHub <noreply@github.com>2017-01-07 09:43:40 -0800
commitc6959de11b735c1610973ee625f52ff7e892abcc (patch)
tree3ac6ce18729a3f620daf9d767544151d38c7d243
parentfc99df08db40cb47abd4add79829f311cee85767 (diff)
parentbcd464aeeccfe482ad3b0c755141dd9a1be41550 (diff)
downloadalacritty-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.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();
}
}