From bcd464aeeccfe482ad3b0c755141dd9a1be41550 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Fri, 6 Jan 2017 22:04:51 -0800 Subject: [PATCH] Fix issue with some international inputs cc #87, #55 --- src/input.rs | 17 +++++++++-------- 1 file 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(); } }