diff options
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/event.rs b/src/event.rs index cb99999a..dcaedc97 100644 --- a/src/event.rs +++ b/src/event.rs @@ -6,6 +6,7 @@ use glutin; use input; use sync::FairMutex; use term::Term; +use util::encode_char; /// The event processor pub struct Processor<N> { @@ -45,8 +46,8 @@ impl<N: input::Notify> Processor<N> { // These letters are handled in the bindings system 'v' => (), _ => { - let encoded = c.encode_utf8(); - self.notifier.notify(encoded.as_slice().to_vec()); + let buf = encode_char(c); + self.notifier.notify(buf); } } }, |