aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-07-29 18:26:51 -0700
committerJoe Wilm <joe@jwilm.com>2016-07-29 18:26:51 -0700
commit90d66e63fc0db621c3ca251da8ad3dbbb1fdb15a (patch)
treebc69a7401beb634852a16eaf539755ffa7bc33a6 /src/input.rs
parent9542279f9d4a0391fedc317634fad70082cd07c6 (diff)
downloadalacritty-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.rs2
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();
}
}