diff options
Diffstat (limited to 'src/event_loop.rs')
-rw-r--r-- | src/event_loop.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event_loop.rs b/src/event_loop.rs index 2cee471c..8db5cddd 100644 --- a/src/event_loop.rs +++ b/src/event_loop.rs @@ -60,6 +60,10 @@ impl event::Notify for Notifier { where B: Into<Cow<'static, [u8]>> { let bytes = bytes.into(); + // terminal hangs if we send 0 bytes through. + if bytes.len() == 0 { + return + } match self.0.send(Msg::Input(bytes)) { Ok(_) => (), Err(_) => panic!("expected send event loop msg"), |