mirror of
https://github.com/alacritty/alacritty.git
synced 2026-11-27 16:08:43 +03:00
Switch to write_all in input handler
Make sure all input bytes get flushed
This commit is contained in:
1 parent
9542279f9d
commit
90d66e63fc
1 file changed
+1
-1
+1
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user