Fix issue with some international inputs

cc #87, #55
This commit is contained in:
Joe Wilm 2017-01-06 22:04:51 -08:00
parent 852c2d8f15
commit bcd464aeec
1 changed files with 9 additions and 8 deletions

View File

@ -363,16 +363,17 @@ impl<'a, N: Notify + 'a> Processor<'a, N> {
return; 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()); // Didn't process a binding; print the provided character
self.ctx.selection.clear(); 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();
} }
} }