aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-10-14 16:38:15 -0700
committerJoe Wilm <joe@jwilm.com>2016-10-14 16:38:15 -0700
commit71de5501c450eeaa363aa5403a5258d231d64935 (patch)
treee2399301b7fde92f04389f74ae4215ee3f794f86 /src/event.rs
parent1d60fdd6e3eb4fb7d42a26de29af3bea56785564 (diff)
downloadalacritty-71de5501c450eeaa363aa5403a5258d231d64935.tar.gz
alacritty-71de5501c450eeaa363aa5403a5258d231d64935.zip
Rustup and update dependencies
Now uses serde_dervive \o/
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs5
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);
}
}
},