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/input.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/input.rs')
-rw-r--r-- | src/input.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/input.rs b/src/input.rs index f1022814..6fb722d0 100644 --- a/src/input.rs +++ b/src/input.rs @@ -31,6 +31,7 @@ use glutin::{Mods, mods}; use term::mode::{self, TermMode}; use event_loop; +use util::encode_char; /// Processes input from glutin. /// @@ -362,12 +363,7 @@ impl Processor { println!("ok"); }, Action::Char(c) => { - // TODO encode_utf8 returns an iterator with "as_slice" - // https://github.com/rust-lang/rust/issues/27784 has some - // discussion about this API changing to `write_utf8` which - // requires passing a &mut [u8] to be written into. - let encoded = c.encode_utf8(); - notifier.notify(encoded.as_slice().to_vec()); + notifier.notify(encode_char(c)); } } |