diff options
author | Joe Wilm <joe@jwilm.com> | 2016-10-14 16:38:15 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-10-14 16:38:15 -0700 |
commit | 71de5501c450eeaa363aa5403a5258d231d64935 (patch) | |
tree | e2399301b7fde92f04389f74ae4215ee3f794f86 /src/event.rs | |
parent | 1d60fdd6e3eb4fb7d42a26de29af3bea56785564 (diff) | |
download | alacritty-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.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); } } }, |