diff options
author | Joe Wilm <joe@jwilm.com> | 2016-07-29 18:26:51 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-07-29 18:26:51 -0700 |
commit | 90d66e63fc0db621c3ca251da8ad3dbbb1fdb15a (patch) | |
tree | bc69a7401beb634852a16eaf539755ffa7bc33a6 /src/input.rs | |
parent | 9542279f9d4a0391fedc317634fad70082cd07c6 (diff) | |
download | alacritty-90d66e63fc0db621c3ca251da8ad3dbbb1fdb15a.tar.gz alacritty-90d66e63fc0db621c3ca251da8ad3dbbb1fdb15a.zip |
Switch to write_all in input handler
Make sure all input bytes get flushed
Diffstat (limited to 'src/input.rs')
-rw-r--r-- | src/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input.rs b/src/input.rs index f452aa4e..55594e19 100644 --- a/src/input.rs +++ b/src/input.rs @@ -115,7 +115,7 @@ pub struct WriteNotifier<'a, W: Write + 'a>(pub &'a mut W); impl<'a, W: Write> Notify for WriteNotifier<'a, W> { fn notify(&mut self, message: &str) { - self.0.write(message.as_bytes()).unwrap(); + self.0.write_all(message.as_bytes()).unwrap(); } } |